Re: procfs and file operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...

On Sat, Jun 26, 2010 at 03:53, Chris <chris.maier85@xxxxxx> wrote:
> I read the pages 83-90 in the LDD3 and the sources
> (http://lxr.linux.no/#linux+v2.6.34/include/linux/proc_fs.h).
>
> Now, I am a little confused.
> The struct proc_dir_entry contains a struct file_operations. Thus I can
> implement all standard file operations on a proc file entry?

AFAIK, only read and write (if it is meant to be writeable). Note:
these days you need to use sequential write and read. refer to Rob PJ
Day's articles on how to do such thing. Rob, please, go ahead on
this...

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux