Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 2004 17:55:24 -0700 (PDT)
From:      pradeep reddy punnam <prady_p@yahoo.com>
To:        freebsd-hackers@freebsd.org
Subject:   unable to copy data from the kernel to the user space
Message-ID:  <20040708005524.19141.qmail@web53407.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
hi hackers,
 
i am new to kernel hacking , i am just trying to play with the networking code.
i wrote a system call that will copy the mbuf address from the kernel to user space..
the sys call look like this
 
355  STD BSD  { int sn_rqueue(struct mbuf *m);}
 
and the code  in the sn_rqueue syscall look like 
struct mbuf *x;
copyout(x,uap->m;sizeof(x));
 
and the code in the user program look like 
struct mbuf *m=NULL;
syscall(355,m);
 
and when i tryed to read the ' m ' value it still stays as NULL,
may be this question is trivial for u guys..but i was struck at this point...
i will be very thankful if somebody can help in this...
 
 
-prady
 
 
 

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040708005524.19141.qmail>