I was lazy and trying to get this to work :)
> Otherwise you could simply do:
>
> syscall(SYS_mknod, name, S_IFBLK | mode, dev);
Yes, I'll switch to this way soon, just have to make sure my version of
dev stays the same size as the kernel's version...
> > Yes, I know there's still a lot of work to do (serialization, symlinks,
> > hooking hotplug so that others can also use it, etc.) but it's a first
> > step :)
>
> To help serialization and perfomance issues, it might help to add a daemon
> mode to hotplug. The kernel calls hotplug with a pipe from which it reads
> the event data, after a certain timeout it can close the pipe and exit.
Yes, this is probably what is going to happen soon.
thanks,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/