Issue while unloading modules via modprobe

Mandeep Sandhu mandeepsandhu.chd at
Tue Dec 3 03:47:42 EST 2013

> error =  system("modprobe -rv A");
> This returns an error = 256.

What does 'perror' show (if anything) ?

Also, if you try the same via a shel, whats the return value ('echo
$?') printed?

BTW, why are you using the '-v' option when invoking modprobe programatically?


More information about the Kernelnewbies mailing list