Hi all,
linux lover wrote:
Hi everyone,
i very new to linux kernel programming and i have a problem.
Iam creating a module which creates a entry in /proc interface like that :
/proc/testfile with permission set to 0666.
Now i want to write an integer value in this file like this:
inval = 8000;
wbytes = write(fd, &inval, sizeof(int));
are you doing it from user application?
its giving me error with errno set to EINVAL which means "fd is
attached to an object which is unsuitable for writing"
can anyone plz help me.
details are far too less to explain. please provide the code also. Hope
you have read through
linux kernel procfs guide. Also go through linux/proc_fs.h if you haven't.
--
Hiran
thanks in advance.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/