We need help in linux kernel programming.
Following r the problems that we have encountered:
1> When we use '%' and '/' operators we get an error while inserting the module like:
"Unresolved symbol _udivdi3 and _umoddi3 "
but the ambiguity lies in the fact tht '/' operator works at some places w/o
any error.We have also tried including "fdiv" functions from "math-emu"
directory but still it gives error like "Unresolved symbol fdiv"
2>***VERY IMPORTANT QUESTION******
the system call "access" doesnt work at kernel level so we used "sys_access" ,
and for tht we included the necessary header file "fs/open.c" still it gave
the "unresolved symbol error" so to remove the error we included the
entire code of sys_access defined in fs/open.c in our code
similarly for "rename" we included the code of "do_rename" in our source code
But its just not a good idea of including the codes of system calls in our code
,caus we had no other alternative so we had to include the code for these syscalls
Is any other solution for it.
3>we didnt find a kernel level substitute for system call "opendir" and "dirfd"
We tried including "dirent.h" file but while compiling it gives parse errors.
4> "sys_unlink" is kernel equivalent for "unlink" again we had to
include the file "fs/namei.c" but it gave error like "redefination in structure in dnotify.h"
and sometimes it gave error like::
syntax error before "_export_objs_in_the_Makefile" so we thought of making changes in makefile.
But that too didnt work or may be we were wrong.
Please do reply to our querries as soon as possible.
Waiting for ur reply.
Bye take care