Skip to contentSkip to conversation

Question on IOCTL hooks.

DISCUSSION Ben Greear 1 participant 1 message Aug 16, 2001

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

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

Signature · 3 lines
Ben Greear <[email protected]>          <[email protected]>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear