Re: query related to /proc and read_write.c file

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

 



See this
http://www.dirac.org/linux/writing/lkmpg/lkmpg.html#AEN715

Also read about copy_to_user/copy_from_user functions.

Regards
Mohanlal

----- Original Message -----
From: "bunty" <bunty123_4@rediffmail.com>
To: <kernelnewbies@nl.linux.org>; <mohanlal@samsung.com>;
<omanakuttan@tataelxsi.co.in>
Sent: Monday, April 26, 2004 8:24 PM
Subject: query related to /proc and read_write.c file


hello,
  1) how kernel write to /proc entry? while studying kernel source i found
that there is no open/read/write/close file functions.
what i found is that sprintf function that writes to /proc entry. can anyone
please explain it?

   2)what is the use of read_write.c file in fs directory of kernel source?
the file contains sys_read, sys_write. why there is no function that will
read a user space file and write to it.
i found few questions asked on linux-kernel as well as kernelnewbies but
there is no one able to answer it?
i am using kernel 2.4.24.
regards,
parag.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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