NLM add NLM4 LOCK definition to the rpc file
[deb_libnfs.git] / nlm / nlm.x
index bcbed9cfe96574eccae2f4eb25686f3a1954cdb8..9d728d3e1e3846d82e766f854ecb601f1e2bd094 100644 (file)
--- a/nlm/nlm.x
+++ b/nlm/nlm.x
@@ -84,6 +84,30 @@ struct NLM4_CANCargs {
        nlm4_lock  lock;
 };
 
+struct NLM4_UNLOCKres {
+       nlm_cookie cookie;
+       nlmstat4 status;
+};
+
+struct NLM4_UNLOCKargs {
+       nlm_cookie cookie;
+       nlm4_lock  lock;
+};
+
+struct NLM4_LOCKres {
+       nlm_cookie cookie;
+       nlmstat4 status;
+};
+
+struct NLM4_LOCKargs {
+       nlm_cookie cookie;
+       bool block;
+       bool exclusive;
+       nlm4_lock  lock;
+       bool reclaim;
+       int state;
+};
+
 program NLM_PROGRAM {
        version NLM_V4 {
                void
@@ -92,14 +116,14 @@ program NLM_PROGRAM {
                NLM4_TESTres
                NLM4_TEST(NLM4_TESTargs)         = 1;
 
-/*             nlm4_res                         */
-/*             NLM4_LOCK(nlm4_lockargs)         = 2;   */
+               NLM4_LOCKres
+               NLM4_LOCK(NLM4_LOCKargs)         = 2;
 
                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;   */
@@ -107,14 +131,14 @@ program NLM_PROGRAM {
                void
                NLM4_TEST_MSG(NLM4_TESTargs)     = 6;
 
-/*             void                             */
-/*             NLM4_LOCK_MSG(nlm4_lockargs)     = 7;   */
+               void
+               NLM4_LOCK_MSG(NLM4_LOCKargs)     = 7;
 
                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;   */
@@ -122,14 +146,14 @@ program NLM_PROGRAM {
                void
                NLM4_TEST_RES(NLM4_TESTres)     = 11;
 
-/*             void                            */
-/*             NLM4_LOCK_RES(nlm4_res)         = 12;   */
+               void
+               NLM4_LOCK_RES(NLM4_LOCKres)         = 12;
 
                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;   */