lkml.org 
[lkml]   [2005]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectwhich file functions can be used on /proc file?
hello,
i found that in struct proc_dir_entry struct
file_operations *proc_fops; is defined. and struct
file_operations has defined read, write,
poll,llseek,ioctl,flush,release,lock etc functions. so
can all these functions be used on any /proc entry in
usermode as well as in kenrel mode?
Also can following functions be used on my own
created /proc file kernel module and when to use them
as i have alredy struct file_opereations read and
write routine that read/write to/from /proc file.
typedef int (read_proc_t)(char *page, char **start,
off_t off,
int count, int *eof, void
*data);
typedef int (write_proc_t)(struct file *file, const
char *buffer,
unsigned long count, void
*data);
typedef int (get_info_t)(char *, char **, off_t, int);

regards,
cranium.




__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.033 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site