From 8d3c1af0c933fb614801d1ae42315940de030e4c Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 10 Mar 2012 22:36:26 +1100 Subject: [PATCH] NLM: add UNLOCK call --- nlm/nlm.x | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/nlm/nlm.x b/nlm/nlm.x index bcbed9c..19fe65d 100644 --- a/nlm/nlm.x +++ b/nlm/nlm.x @@ -84,6 +84,16 @@ struct NLM4_CANCargs { nlm4_lock lock; }; +struct NLM4_UNLOCKres { + nlm_cookie cookie; + nlmstat4 status; +}; + +struct NLM4_UNLOCKargs { + nlm_cookie cookie; + nlm4_lock lock; +}; + program NLM_PROGRAM { version NLM_V4 { void @@ -98,8 +108,8 @@ program NLM_PROGRAM { NLM4_CANCres NLM4_CANCEL(NLM4_CANCargs) = 3; -/* nlm4_res */ -/* NLM4_UNLOCK(nlm4_unlockargs) = 4; */ + NLM4_UNLOCKres + NLM4_UNLOCK(NLM4_UNLOCKargs) = 4; /* nlm4_res */ /* NLM4_GRANTED(nlm4_testargs) = 5; */ @@ -113,8 +123,8 @@ program NLM_PROGRAM { void NLM4_CANCEL_MSG(NLM4_CANCargs) = 8; -/* void */ -/* NLM4_UNLOCK_MSG(nlm4_unlockargs) = 9; */ + void + NLM4_UNLOCK_MSG(NLM4_UNLOCKargs) = 9; /* void */ /* NLM4_GRANTED_MSG(nlm4_testargs) = 10; */ @@ -128,8 +138,8 @@ program NLM_PROGRAM { void NLM4_CANCEL_RES(NLM4_CANCres) = 13; -/* void */ -/* NLM4_UNLOCK_RES(nlm4_res) = 14; */ + void + NLM4_UNLOCK_RES(NLM4_UNLOCKres) = 14; /* void */ /* NLM4_GRANTED_RES(nlm4_res) = 15; */ -- 2.34.1