msgport: Add message put done receipt support
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 10 Aug 2014 11:42:58 +0000 (19:42 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 10 Aug 2014 12:35:09 +0000 (20:35 +0800)
commitac6c441c1eb77d0c183254c94adaa31dfcdbed55
tree90c03a71d0fc68c1ea43cf5974821783703af919
parentdafcba8560ef1964310caf10c2e6e9edfbff0d12
msgport: Add message put done receipt support

The receipt callback is called immediately after the message is put on to
the target msgport.  Complex operation is NOT allowed in this callback,
since it could be called w/ spinlock for spin msgports.

It will be used to fix the race between the upper half (socket code)
and the so_port switching.
sys/kern/lwkt_msgport.c
sys/sys/msgport.h
sys/sys/msgport2.h