lkml.org 
[lkml]   [2001]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectQuestion on IOCTL hooks.
Currently, my VLAN code creates a file: /proc/net/vlan/config,
and I have attached an IOCTL hook to that file, such that when
an ioctl call is done on that file, my method is called...

However, davem wants VLAN to be able to function w/out the
/proc fs. So, I need to know how to ensure my IOCTL
code can be called on any (or some other) file.

Can someone suggest a piece of code or documentation that
I should look at for the 'right way' to do this?

Also, any suggestions as to how to pick an IOCTL that is
guaranteed not to conflict with someone else's IOCTL?

Thanks,
Ben

--
Ben Greear <greearb@candelatech.com> <Ben_Greear@excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.026 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site