From ee779b4adca6700a672b49a9a8ae1b05aa36074f Mon Sep 17 00:00:00 2001 From: Nuno Antunes Date: Mon, 17 Sep 2012 06:16:52 +0100 Subject: [PATCH] msgport.9: Catch up with recent changes to lwkt_initport_spin(). --- share/man/man9/msgport.9 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/share/man/man9/msgport.9 b/share/man/man9/msgport.9 index 0e77fec7f7..4fab2728d2 100644 --- a/share/man/man9/msgport.9 +++ b/share/man/man9/msgport.9 @@ -31,7 +31,7 @@ .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 12, 2012 +.Dd September 17, 2012 .Dt MSGPORT 9 .Os .Sh NAME @@ -61,7 +61,7 @@ .Ft void .Fn lwkt_initport_thread "lwkt_port_t port" "struct thread *td" .Ft void -.Fn lwkt_initport_spin "lwkt_port_t port" +.Fn lwkt_initport_spin "lwkt_port_t port" "struct thread *td" .Ft void .Fn lwkt_initport_serialize "lwkt_port_t port" "struct lwkt_serialize *slz" .Ft void @@ -212,6 +212,7 @@ The .Fn lwkt_dropmsg will dequeue the specified message from the target port it was sent to and makes it look like it was never sent. +This function can only be used by the thread that owns the target port. .Sh PORT FUNCTIONS The .Fn lwkt_initport_thread @@ -228,7 +229,16 @@ The initializes the specified .Fa port with the default 'spin' port type handlers. -It will also initialize the embedded spinlock within the +The +.Fa td +argument defines the owner thread of the port, for cases where thread built-in +ports are initialized as 'spin' ports. +If +.Dv NULL +is passed, then the port will not have a defined owner, so functions like +.Fn lwkt_dropmsg +will not be available for this port. +This function will also initialize the embedded spinlock within the lwkt_port structure which will protect subsequent port access. .Pp The -- 2.41.0