(no subject)
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]
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.hlike 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
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.hlike 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