WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] [RFC] sysfs support for xen linux

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] [RFC] sysfs support for xen linux
From: "Mike D. Day" <ncmike@xxxxxxxxxx>
Date: Tue, 10 Jan 2006 07:58:09 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 10 Jan 2006 13:04:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)
On 5:13 AM Keir Fraser wrote:
xen_sysfs.c looks to contain a lot of code that I would expect to be part of a generic sysfs library. Does every subsystem that uses sysfs really have to implement all that stuff for itself?

No, they don't. Drivers get sysfs attributes by using the driver core (registering a subsystem, defining attributes, etc.).

However, if all you want to do is create and remove files under /sys (without using all the driver core), there is no simple way to do so (at least not that I could find). I am assuming that folks will want something that works like /proc does now.

I wrote xen_sysfs.c to provide simple sysfs interfaces for non-drivers. It seems as though it would be a crime against nature to write a device driver just to create a file under /sys.

(I am not a sysfs expert, by the way :-) .
Neither am I, but perhaps some such person will give feedback. :-)

Mike

--

Mike D. Day
STSM and Architect, Open Virtualization
IBM Linux Technology Center
ncmike@xxxxxxxxxx

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel