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 which is what I've been experimenting with. It's much simpler than having to handle the VFS semantics of mkdir/rmdir Paul ------------------------------------------------------------------------- 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