All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mike D. Day" <ncmike@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] [RFC] sysfs support for xen linux
Date: Tue, 10 Jan 2006 07:58:09 -0500	[thread overview]
Message-ID: <43C3AF61.8090102@us.ibm.com> (raw)

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@us.ibm.com

             reply	other threads:[~2006-01-10 12:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-10 12:58 Mike D. Day [this message]
2006-01-11 10:21 ` [PATCH] [RFC] sysfs support for xen linux Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2006-01-11 16:28 Mike D. Day
2006-01-11 16:28 ` Mark Williamson
2006-01-11 16:50   ` Anthony Liguori
2006-01-11 17:03     ` Daniel Stekloff
2006-01-11 16:12 Mike D. Day
2006-01-11 16:05 ` Mark Williamson
2006-01-11 16:35   ` Keir Fraser
2006-01-11 16:40     ` Ronald G Minnich
2006-01-09 23:35 Mike D. Day
2006-01-10  1:09 ` Christopher G. Stach II
2006-01-10 10:13 ` Keir Fraser
2006-01-10 13:23 ` Gawain Lynch
2006-01-12  1:44 ` Chris Wright

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43C3AF61.8090102@us.ibm.com \
    --to=ncmike@us.ibm.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.