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

system command




Hi all,
 
    when i am inerting kernel module of this prog i am
getting the following error
"unresolved symbol system".
What is the error in my prog ?
first.o is working well.
Please tell me .

Regards
Anumula

#include<stdio.h>
#include<rtl.h>
#include<time.h>
#include<pthread.h>
#include<stdlib.h> 

pthread_t thread1; 
void start_routine() {
  struct sched_param p;
  p.sched_priority=10;
  pthread_setschedparam(pthread_self(),SCHED_FIFO,&p);
 
 
pthread_make_periodic_np(pthread_self(),gethrtime()+20,10000000000000);
  system("rtlinux start first.o");
} 
int init_module(void) {
  return
pthread_create(&thread1,NULL,start_routine,NULL);
} 
void cleanup_module(void){
  pthread_delete_np(thread1);
}

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/