|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes
On Thu, Jan 12, 2006 at 03:42:20PM +0100, Gerd Hoffmann wrote:
> Arjan van de Ven wrote:
> >> privcmd returns a filehandle which is then used
> >>for ioctls (misc char dev maybe?).
> >
> >
> >EWWWWWWWWWWWWWW
> >
> >what is wrong with open() ?????
> >things that return fd's that aren't open() (or dup and socket) are just
> >evil. Esp if it's in proc or sysfs.
>
> Nothing is wrong with open, but probably the sentense above is a bit too
> short. If you call fd = open("/proc/xen/privcmd", ...) you'll get a
> filehandle returned for the thingy (as usual) and then you'll use that
> filehandle to call ioctl(fd, ...), so it's the usual unix way ...
Sounds like a normal filesystem, please don't abuse proc for this.
What exactly do the different ioctls do? Do they have to be ioctls?
Can you use configfs or sysfs for most of the stuff there?
thanks,
greg k-h
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, (continued)
- Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Anthony Liguori
- Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Greg KH
- Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Anthony Liguori
- Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Greg KH
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Gerd Hoffmann
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Greg KH
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Arjan van de Ven
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Gerd Hoffmann
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes,
Greg KH <=
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Anthony Liguori
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Greg KH
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Mike D. Day
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Greg KH
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Arjan van de Ven
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Anthony Liguori
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Mike D. Day
- [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Greg KH
[Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes, Pavel Machek
|
|
|
|
|