>Alan Coopersmith wrote: >> Is there a public interface to load a kernel module from user space? >> >> Looking at the modload source, it seems to use the modctl() system call >> but I see no man page for that. >> >> (At this point it's a matter of curiosity, since I noticed that the >> Xorg code to load a kernel module for DRI is stubbed out on Solaris. >> It seems to work as is, but I've just seen a code review go by on the >> xorg-devel mailing list for some changes that might require us to >> support it in the future. The equivalent BSD code is a simple call >> to kldload(): >> http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/os-support/bsd/bsd_kmod.c >> >> while the Linux code does a fork/exec of the modprobe command: >> http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/os-support/linux/lnx_kmod.c >> ) >> >> >There is always "modload(1M)". I'm not aware of any *public* system calls.
But why is this needed? If the device driver is installed, just using it will load it. Casper _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code