Issue while unloading modules via modprobe
Chetan Nanda
chetannanda at gmail.com
Tue Dec 3 04:57:30 EST 2013
On Tue, Dec 3, 2013 at 2:17 PM, Mandeep Sandhu
<mandeepsandhu.chd at gmail.com>wrote:
> >
> > error = system("modprobe -rv A");
> >
> > This returns an error = 256.
>
> Hi Mandeep,
thanks for your mail
What does 'perror' show (if anything) ?
>
> Also, if you try the same via a shel, whats the return value ('echo
> $?') printed?
>
> echo $? show 1 (EPERM? most probably, operation not permitted for common
module).
> BTW, why are you using the '-v' option when invoking modprobe
> programatically?
>
> yes, -v option can be removed (behaviour is same even after removing -v
option)
-mandeep
>
Thanks,
Chetan Nanda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131203/23c8cc6b/attachment.html
More information about the Kernelnewbies
mailing list