lkml.org 
[lkml]   [1998]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Sharing ioctls between char and net device
Date
> 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/

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