Hi,
I have a similar question to the one quoted below. The only problem is, I crash the
kernel when I attempt to use the system() command to insert and remove my kernel
module.
This is the command I'm using...
x = system("/sbin/insmod /usr/rtlinux/examples/adc2/int.o");
I get a screenfull of info, which includes the following...
...
Unable to handle kernel NULL pointer dereference @ virtual address 00000000....
Kernel Panic
in swapper task - not syncing
...
Can you tell me what I'm doing wrong? From what I understand, I'm accessing a wrong
piece of memory.
Incidentally, my supervising professor for my project was a research fellow at
University College London / Mullard... back in 96' I belive. Worked with Dick
Jennings. I'm writing real time software for a mach-zehnder fourier transform
spectrometer for use at JCMT, Mauna Kea. Small world, I guess.
Thanks in advance
Ian Schofield.
Matthew Whillock wrote:
> On Tue, Mar 06, 2001 at 07:20:57PM +0000, Frederic Cazenave wrote:
> > Hi,
> >
> > is there a way to check from a user space program if a module is
> > installed or not ?
> > And if my module is mot installed how to do it inside the program ?
> >
> > Fred
> >
>
> Hi,
>
> I use the system call and it seems to work ok (mdpsim is the name
> of my module). I don't know about inserting the module - need root
> privileges.
>
> int ret;
>
> ret = system("/sbin/lsmod | grep ^mdpsim");
>
> if (ret == 127) {
> fl_addto_browser(fd_control_form->connect_form_browser,"/bin/sh failed");
> return;
> }
> if (ret != 0) {
> fl_addto_browser(fd_control_form->connect_form_browser,"mdpsim.o not installed");
> return;
> }
> fprintf(stderr,"System return = %d\n",ret);
>
> Cheers,
> Matt W
> --
> Matthew Whillock
> [EMAIL PROTECTED] Dept. of Space and Climate Physics,
> Tel: +44 1483 204181 Mullard Space Science Laboratory,
> Fax: +44 1483 278312 University College London.
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
--
Ian Schofield 4401 University Drive
University of Lethbridge Lethbridge, Alberta, Canada
Physics Department T1K 3M4
Astrophysics Lab Ph (403) 329-2741
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/