Re: Accessing File System from Module

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

 



On Thu, Sep 19, 2002 at 09:45:32AM -0700, Greg KH wrote:
> > What I am aiming at, is using the TUN (http://vtun.sourceforge.net/tun/)
> > driver to capture packets sent to the net, and actually sending them
> > to my PCI board. This looks like pure kernel activity. Can't it be
> > done without involving userland ?
> 
> Why would you want to?  Just grab the packets from userspace, and then
> send them to your driver from userspace.  You can do blocking reads much
> easier that way, and don't have to worry about internal file handles,
> and getting the segment registers correct, and other such stuff.

Wouldn't it be easier to do things directly? I mean either registering
your own device (possibly using the TUN code, but not as a whole), or
adding a filter in appropriate place in the real driver.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
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