On Sat, Aug 20, 2005 at 15:16:55 +0900, linux lover wrote: > 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)); > > its giving me error with errno set to EINVAL which means "fd is > attached to an object which is unsuitable for writing" That means you didn't actually implement the appropriate method. Implement it ;-). ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature