call_usermodehelper()函数
1 static int umh_test( void ) 2 { 3 char *argv[] = { "/usr/bin/logger", "help!", NULL }; 4 static char *[] = { 5 "HOME=/", 6 "TERM=linux", 7 "PATH=/sbin:/bin:/usr/sbin:/usr/bin", NULL }; 8 9 return call_usermodehelper( argv[0], argv, envp, UMH_WAIT_PROC ); 10 }