Re: How to read file in kernel module?

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

 



When u register a device with the kernel for example, a character device
U attach the device structure into the device table . which is filled with
pointers to our read and write functions .while registering a proc entry also we can fill such functional pointers .


up  up and away

shyam




On Wed, 02 Feb 2005 14:36:54 +0530, Amith <amith@xxxxxxxxxxxxxxx> wrote:

Shyamjith wrote:

There is *NO* Copyto_User. There are copy_to_user and copy_from_user.

And anway, these are NOT a method of communication -- they are the

low-level mechanizm under some of them. The mechanizms available are:
1) Character device

2>>) ioctl on character device

3) procfs file
4) Netlink socket



See i think we are talking about kernel programming . What i mean to say is
that there is only two ways to communiacte to user space . One through a
registerd read or write functions
Shyamjith ,
what did you mean by a registered read/write function ? i couldnt understand , please clarify /


cheers,
Amith





-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
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