Skip to contentSkip to conversation

(no subject)

DISCUSSION Alexandr Chernyy 3 participants 3 messages Feb 9, 2004

lore
Share & tools
lore
#0 lore raw

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.

WBR, Alexandr Chernyy
[email protected]

#1 lore raw
Quoted 4 lines · Alexandr Chernyy

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.

Quoted 2 lines

WBR, Alexandr Chernyy
[email protected]

/Matti Aarnio

#2 lore raw
In reply to Alexandr Chernyy
Quoted 4 lines · Alexandr Chernyy

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.

what you are looking for is not usually needed by 'normal' kernel modules. could you please be more specific on what is exactly your porpouse?

alessandro