Re: (no subject)

From: Matti Aarnio
Date: Mon Feb 09 2004 - 16:23:24 EST


On Mon, Feb 09, 2004 at 11:05:58PM +0200, Alexandr Chernyy wrote:
> Hello All! Can you help me! I write module for kernel 2.4.22 and have
> some problems! I need to read some information form file, create
> directory and etc. (Did kerlen have some stdio.h like function - fopen,
> fgets, fclose......)!!! Please help me.

Programming in kernel-space isn't at all the same as in userspace.
For starters, the context stack is highly restricted in size.

You can have some pointers for it by studying the way, how
the kernel-space NFS server works while opening files, and
doing IO.

Oh yes, there is NO STDIO in kernel.

> WBR, Alexandr Chernyy
> nikalex@xxxxxxxx

/Matti Aarnio
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/