I have to implement a system call xyz(int,int)which takes two arguments
(integer) and saves the calling user process id and these two integer
arguments in a file.If I directly call do_open(),do_write() from
do_setkey() then it is opening the file ,but problem is with do_write
(),it is writing some invalid data to my file(It is writing CCCCC to
my file,these are NULL,they are visible through "vi" editor but not in
"mined" editor).I have to implement it as a system call.I can not
change that.How to do ?