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
 )

-- 
        -Alan Coopersmith-           alan.coopersm...@sun.com
         Sun Microsystems, Inc. - X Window System Engineering

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to