diff options
Diffstat (limited to 'include/linux/lockd/xdr.h')
-rw-r--r-- | include/linux/lockd/xdr.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/lockd/xdr.h b/include/linux/lockd/xdr.h index 631a8fba8..f397306c4 100644 --- a/include/linux/lockd/xdr.h +++ b/include/linux/lockd/xdr.h @@ -25,10 +25,21 @@ struct nlm_lock { }; /* + * NLM cookies. Technically they can be 1K, Nobody uses over 8 bytes + * however. + */ + +struct nlm_cookie +{ + unsigned char data[8]; + unsigned int len; +}; + +/* * Generic lockd arguments for all but sm_notify */ struct nlm_args { - u32 cookie; + struct nlm_cookie cookie; struct nlm_lock lock; u32 block; u32 reclaim; @@ -42,7 +53,7 @@ struct nlm_args { * Generic lockd result */ struct nlm_res { - u32 cookie; + struct nlm_cookie cookie; u32 status; struct nlm_lock lock; }; |