diff options
Diffstat (limited to 'include/net/9p/9p.h')
-rw-r--r-- | include/net/9p/9p.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 1859a2560cc5..6367a71d84fc 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h | |||
@@ -167,6 +167,8 @@ enum p9_msg_t { | |||
167 | P9_RFSYNC, | 167 | P9_RFSYNC, |
168 | P9_TLOCK = 52, | 168 | P9_TLOCK = 52, |
169 | P9_RLOCK, | 169 | P9_RLOCK, |
170 | P9_TGETLOCK = 54, | ||
171 | P9_RGETLOCK, | ||
170 | P9_TLINK = 70, | 172 | P9_TLINK = 70, |
171 | P9_RLINK, | 173 | P9_RLINK, |
172 | P9_TMKDIR = 72, | 174 | P9_TMKDIR = 72, |
@@ -492,6 +494,22 @@ struct p9_flock { | |||
492 | char *client_id; | 494 | char *client_id; |
493 | }; | 495 | }; |
494 | 496 | ||
497 | /* struct p9_getlock: getlock structure | ||
498 | * @type - type of lock | ||
499 | * @start - starting offset of the lock | ||
500 | * @length - number of bytes | ||
501 | * @proc_id - process id which wants to take lock | ||
502 | * @client_id - client id | ||
503 | */ | ||
504 | |||
505 | struct p9_getlock { | ||
506 | u8 type; | ||
507 | u64 start; | ||
508 | u64 length; | ||
509 | u32 proc_id; | ||
510 | char *client_id; | ||
511 | }; | ||
512 | |||
495 | /* Structures for Protocol Operations */ | 513 | /* Structures for Protocol Operations */ |
496 | struct p9_tstatfs { | 514 | struct p9_tstatfs { |
497 | u32 fid; | 515 | u32 fid; |