I have added the pairs to dev_ioctl() and (I believe)
the appropriate header files.
However, I am at a loss as to what I would have to do to
get dev_ioctl called with the appropriate arguments. For
example, the sys_ioctl() method seems to expect a file descriptor,
but I'm talking about a device here, so I've no idea how to get
this file descriptor (does this have something to do with the /proc
file system?)
I would imagine that somewhere down the call stack from sys_ioctl()
I would need to add a switch for the ADD/DELETE device ioctl
values to tell it to go get dev_ioctl() to handle the request. Any
idea where that might be?
If I could figure out how to add a /proc entry, maybe I could
just control these things by echo'ing commands to that file?
Gonna keep digging, thanks for any help or pointers you may
have to offer!
Ben
-- Ben Greear (greear@cyberhighway.net) http://www.primenet.com/~greear Author of ScryMUD: mud.primenet.com 4444 http://www.primenet.com/~greear/ScryMUD/scry.html- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/