need help with system call

hi everyone
i wrote a system call and compiled the kernel succesfully...
my system call is in a file in the kernel folder named my_syscall1.c (kernel/my_syscall1.c)
the header file for this system call i added it in the folder include like this include/my_syscall1/my_syscall1.h

my problem is that when i write a program i cant get it to compile...i always get an error saying that it can find the header file...
where to i put the header file so i can use it?

my program starts like this...
#include <stdio.h>
#include <my_syscall1/my_syscall1.h>

Put the include file in your current directory and use
#include "my_syscall1.h"

Your compiler already has its own idea of where the include file are and you are probably using the wrong directory. Also there is probably -I option to add another directory to list of places to search for include files.

1 Like

Why not use the syscall() interface function for system calls instead of building your own wrapper?