Re: Issue while unloading modules via modprobe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Tue, Dec 3, 2013 at 2:17 PM, Mandeep Sandhu <mandeepsandhu.chd@xxxxxxxxx> 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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux