> echo $? show 1 (EPERM? most probably, operation not permitted for common
> module).
>
Hmmm...strange. What does 'dmesg' show when this happens? Is anything
related to an error printed there?
-mandeep
___
Kernelnewbies mailing list
Kernelnewbies@kerne
On Tue, Dec 3, 2013 at 2:17 PM, Mandeep Sandhu
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
> $?') printe
>
> 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?
-mandeep
Hi,
I am getting an error while unloading modules via modprobe. Here is the
description of issue.
I have a module 'A' that depends on Module 'C' and 'D'.
And another module 'B' that depends on Module 'C' and 'E'
I loaded these modules from code via 'system' function as
error = system("modprobe