Re: Issue while unloading modules via modprobe

2013-12-03 Thread Mandeep Sandhu
> 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

Re: Issue while unloading modules via modprobe

2013-12-03 Thread Chetan Nanda
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

Re: Issue while unloading modules via modprobe

2013-12-03 Thread Mandeep Sandhu
> > 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

Issue while unloading modules via modprobe

2013-12-03 Thread Chetan Nanda
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