On 8/4/06, Andrew Morton <[EMAIL PROTECTED]> wrote:
>
> Because directories are created by mkdir(), not by open()+write().
>

That's not always true, particularly for kernel-virtual things like this.

/proc/<pid> directories are created with fork() and removed with waitpid()

Various other things in /proc are created via modprove and removed via rmmod

The point is that we're not actually creating a directory, we're
creating a resource group, whose userspace API is made through the
directory abstraction. So maybe it's not so bad if we don't actually
use mkdir to create it.

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

Reply via email to