Lines Matching +full:1 +full:- +full:9
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * include/net/9p/9p.h
5 * 9P protocol definitions.
16 * enum p9_debug_flags - bits for mount time debug parameter
18 * @P9_DEBUG_9P: 9P protocol tracing
27 * @P9_DEBUG_FSC: FS-cache tracing
35 P9_DEBUG_ERROR = (1<<0),
36 P9_DEBUG_9P = (1<<2),
37 P9_DEBUG_VFS = (1<<3),
38 P9_DEBUG_CONV = (1<<4),
39 P9_DEBUG_MUX = (1<<5),
40 P9_DEBUG_TRANS = (1<<6),
41 P9_DEBUG_SLABS = (1<<7),
42 P9_DEBUG_FCALL = (1<<8),
43 P9_DEBUG_FID = (1<<9),
44 P9_DEBUG_PKT = (1<<10),
45 P9_DEBUG_FSC = (1<<11),
46 P9_DEBUG_VPKT = (1<<12),
62 * enum p9_msg_t - 9P message types
64 * @P9_RLERROR: response for any failed request for 9P2000.L
71 * @P9_TLCREATE: prepare a handle for I/O on an new file for 9P2000.L
72 * @P9_RLCREATE: response with file access information for 9P2000.L
106 * There are 14 basic operations in 9P2000, paired as
112 * See Also: http://plan9.bell-labs.com/sys/man/5/INDEX.html
187 * enum p9_open_mode_t - 9P open modes
192 * @P9_OTRUNC: truncate file to zero-length before opening it
198 * 9P open modes differ slightly from Posix standard modes.
205 * See Also: http://plan9.bell-labs.com/magic/man2html/2/open
221 * enum p9_perm_t - 9P permissions
223 * @P9_DMAPPEND: mode bit for is append-only
227 * @P9_DMTMP: mode bit for non-backed-up files
228 * @P9_DMSYMLINK: mode bit for symbolic links (9P2000.u)
229 * @P9_DMLINK: mode bit for hard-link (9P2000.u)
230 * @P9_DMDEVICE: mode bit for device files (9P2000.u)
231 * @P9_DMNAMEDPIPE: mode bit for named pipe (9P2000.u)
232 * @P9_DMSOCKET: mode bit for socket (9P2000.u)
233 * @P9_DMSETUID: mode bit for setuid (9P2000.u)
234 * @P9_DMSETGID: mode bit for setgid (9P2000.u)
235 * @P9_DMSETVTX: mode bit for sticky bit (9P2000.u)
237 * 9P permissions differ slightly from Posix standard modes.
239 * See Also: http://plan9.bell-labs.com/magic/man2html/2/stat
248 /* 9P2000.u extensions */
259 /* 9p2000.L open flags */
280 /* 9p2000.L at flags */
283 /* 9p2000.L lock type */
285 #define P9_LOCK_TYPE_WRLCK 1
289 * enum p9_qid_t - QID types
291 * @P9_QTAPPEND: append-only
295 * @P9_QTTMP: non-backed-up files
296 * @P9_QTSYMLINK: symbolic links (9P2000.u)
297 * @P9_QTLINK: hard-link (9P2000.u)
300 * QID types are a subset of permissions - they are primarily
302 * a jump-table. Their value is also the most significant 16 bits
305 * See Also: http://plan9.bell-labs.com/magic/man2html/2/stat
319 /* 9P Magic Numbers */
324 /* Minimal header size: size[4] type[1] tag[2] */
337 * struct p9_qid - file system entity information
338 * @type: 8-bit type &p9_qid_t
339 * @version: 16-bit monotonically incrementing version number
340 * @path: 64-bit per-server-unique ID for a file system element
342 * qids are identifiers used by 9P servers to track file system
353 * See Also://plan9.bell-labs.com/magic/man2html/2/stat
363 * struct p9_wstat - file system metadata information
366 * @dev: the sub-type of the server (equivalent to a minor number)
368 * @mode: Plan 9 format permissions of type &p9_perm_t
377 * @n_uid: numeric user id of owner (part of 9p2000.u extension)
378 * @n_gid: numeric group id (part of 9p2000.u extension)
379 * @n_muid: numeric user id of laster modifier (part of 9p2000.u extension)
381 * See Also: http://plan9.bell-labs.com/magic/man2html/2/stat
397 char *extension; /* 9p2000.u extensions */
398 kuid_t n_uid; /* 9p2000.u extensions */
399 kgid_t n_gid; /* 9p2000.u extensions */
400 kuid_t n_muid; /* 9p2000.u extensions */
446 * struct p9_iattr_dotl - P9 inode attribute for setattr
472 #define P9_LOCK_BLOCKED 1
476 #define P9_LOCK_FLAGS_BLOCK 1
480 * @type - type of lock
481 * @flags - lock flags
482 * @start - starting offset of the lock
483 * @length - number of bytes
484 * @proc_id - process id which wants to take lock
485 * @client_id - client id
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
526 * struct p9_fcall - primary packet structure
534 * &p9_fcall represents the structure for all 9P RPC
538 * See Also: http://plan9.bell-labs.com/magic/man2html/2/fcall