How to access kernel infor from user space?

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

 



Dear Newsgroup,

I'm just starting to look at the linux kernel, please help me...

In the Orinoco Driver code, one can get the information about the packet
the driver received, such as packet type, sender, etc. However, these
information are obtained in the kernel space, how can I write the
programme to access these infor from user space?

My understanding is that I can write a new ioctl to access these info,
or I can create a new entry in /proc file system and write these infor
to the file in the kernel space. But how can I do these things? Can
anybody provide me any sample code?

Thanks a lot!

Ying

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