[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: skbuff
>
> That's right - it is forbidden to call copy_to_user from interrupt context.
>
i m not copying data to userspace buffers from a bottom half :-)
i copy them to some kernel space buffers and send them to userspace only when
some application issues a read.
it seems that i have got it all wrong where i copy the data.
i do a memcpy from skb->data to kernel space buffer of length skb->len.
after i do this is see some no data or the whole of ascii in ascending
order.(from 1 -225).
will memcpy work for this kind copying...or is there some other means to do
it?
BTW, im working on some protocol analyzer stuff and my boss hates linux. It
is getting a hard task to convice him and convert him. he stands by solaris
but i want him to bring our flagship product in linux. for any of u
interested in it visit www.amoebatel.com
so iam actually trying to create a test app that is able to capture packets
in 10/100mbps full-duplex networks ;-)
thanx,
Mohan S
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/
- References:
- RE: skbuff
- From: Omer Musaev <omerm@mercury.co.il>
- RE: skbuff
- From: Omer Musaev <omerm@mercury.co.il>