On Fri, Aug 04, 2006 at 03:58:58PM -0700, Paul Menage wrote:
> On 8/4/06, Matt Helsley <[EMAIL PROTECTED]> wrote:
> >Yes. Can userspace do a mkdir in sysfs? rmdir? My understanding is it
> >cannot because sysfs directories represent groups of attributes the
> >represent pre-existing kernel objects. In order to create a directory
> >we'd likely have to invent some roundabout method for creating these
> >objects -- perhaps by echo'ing to a file:
> >
> >echo 'classes/foo/bar/baz' > /sys/ckrm/mkdir
>
> Why is this worse than doing a mkdir() syscall?
>
> Alternatively and perhaps more cleanly,
>
> echo baz > /sys/ckrm/foo/bar/.create
There's no reason that the mkdir(2) in configfs can't trigger
an object appearing in sysfs.
# mkdir config/ckrm/groups/myresourcegroup
# ls config/ckrm/groups/myresourcegroup
tunables status
# ls sys/ckrm/groups/myresourcegroup
members
Or something along those lines. You'd just have that in your
make_object() callback.
Joel
--
The Graham Corollary:
The longer a socially-moderated news website exists, the
probability of an old Paul Graham link appearing at the top
approaches certainty.
Joel Becker
Principal Software Developer
Oracle
E-mail: [EMAIL PROTECTED]
Phone: (650) 506-8127
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech