problems compiling a new syscall

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

 



Hi everybody,

I have created a new syscall which I've included in the mm directory but I have some problems when compiling it.

In my syscall I use routines that have the source code on memory.c, so, in my .c file I define them like this
extern void establish_pte(struct vm_area_struct *,unsigned long,pte_t *,pte_t);
extern int do_wp_page(struct mm_struct *,struct vm_area_struct *,unsigned long,pte_t *,pte_t);
extern int do_no_page(struct mm_struct *,struct vm_area_struct *,unsigned long,int,pte_t *);


In order to indicate to the compiler that they are coded in an another file, but when I compile my kernel by doing make bzImage I got three errors saying that there are references to this routines are not defined.

Does anybody have some idea about what I'm doing wrong?

I've obtained the instructions to add a new syscall  from that link
http://www.mathcs.carleton.edu/faculty/jondich/courses/cs307_s02/documents/syscall.html

Thanks in advance,
Cristina.

_________________________________________________________________
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor & Amistad. http://match.msn.es/



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[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