Re: Sharing ioctls between char and net device

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 15 Oct 1998 13:01:29 +0100 (BST)


> device or as the network interface. I have written an user-space utility
> for downloading firmware, resetting the card, querying the hardware
> type etc. I would like to allow this user-space utility work both
> via the ioctl on the character device and via the ioctl on the
> network socket.

Is it a char device for the purposes of being a serial port or just for being
able to control it ?

If its solely for control and command then the wanrouter layer has a notion
of this already putting things in /proc files.

> device seems a bit ugly to me (the clean way is to use the _IOW/_IOR
> macros for generating the ioctl command numbers).

Yep (_IOW/_IOR postdate the socket ioctls in Linux)

Alan

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