diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-14 11:59:14 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-14 11:59:14 +0000 |
commit | 7a95482a13fda95e11af763758735e1f2ba628e1 (patch) | |
tree | 8cb0d859d6104c891c9abc1877263078940a4592 /sys/dev/usb/if_kuevar.h | |
parent | cfd931622f0e30d11d731bf621aef06c3cc42dca (diff) |
when a buffer has a file descriptor to pass attached, we tried to send
out all pending buffers up to and including the one with the fd attached.
the fd is sent with the data and closed after all data is sent.
when this amount of data exceeds what we can get rid of with a single
sendmsg() on our nonblocking sockets we might send the fd more than
once, leaving unused fds around.
when we see a buffer with an fd attached, send out everything up to, but
EXcluding that buffer, so that in the next round a seperate message with
just the one buffer and the associated fd is sent. if anything got
written in that sendmsg() call consider the fd sent and close it. from
a debugging session with theo hunting something else, claudio ok
Diffstat (limited to 'sys/dev/usb/if_kuevar.h')
0 files changed, 0 insertions, 0 deletions