sosend() and mbuf

Dag-Erling Smørgrav des at des.no
Mon Aug 3 19:52:06 UTC 2009


[please cc: the list]

Maslan <maslanbsd at gmail.com> writes:
> man 9 sosend:
>      Data may be sent directly from kernel or user memory via the uio
>      argument, or as an mbuf chain via top, avoid- ing a data copy.
>      Only one of the uio or top pointers may be non-NULL

Hmm, I missed that part.  It never occurred to me to *not* use mbufs.

I guess the question is: what is your question?  Does your code work?
If it doesn't, where and how does it fail?  If it does, why are you
asking?

In any case, 'man 9 sosend' answers the "I can't find useful information
on sosend()" part of your email.  If you still have questions after
reading that, try looking at existing kernel code that uses sosend(9)
with iovecs (or with mbufs, if you decide to go that route).

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list