PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
9P Protocol

9P Protocol. More...

Collaboration diagram for 9P Protocol:

Detailed Description

9P Protocol.

The sys/9p.h header provides definitions for the 9P protocol, a distributed file system protocol developed by Bell Labs.

Messages

Message types prefixed with 'T' are client-to-server messages, while those prefixed with 'R' are server-to-client messages and are usually in response to a 'T' message. The client is the entity initiating requests, and the server is the entity responding to those requests.

All messages follow the format size[4] type[1] tag[2] ... where size is the total size of the message in bytes (including the size field itself), type is one of the message types defined in ninep_msg_type_t, and tag is a identifier used to match requests and responses.

Note
The values specified within square brackets indicate the size of each field in bytes and all multi-byte fields are encoded in little-endian format.
See also
http://rfc.nop.hu/plan9/rfc9p.pdf for the 9P protocol specification.

Enumerations

enum  ninep_msg_type_t {
  Tversion = 100 , Rversion = 101 , Tauth = 102 , Rauth = 103 ,
  Tattach = 104 , Rattach = 105 , Terror = 106 , Rerror = 107 ,
  Tflush = 108 , Rflush = 109 , Twalk = 110 , Rwalk = 111 ,
  Topen = 112 , Ropen = 113 , Tcreate = 114 , Rcreate = 115 ,
  Tread = 116 , Rread = 117 , Twrite = 118 , Rwrite = 119 ,
  Tclunk = 120 , Rclunk = 121 , Tremove = 122 , Rremove = 123 ,
  Tstat = 124 , Rstat = 125 , Twstat = 126 , Rwstat = 127 ,
  Tmax
}
 9P message types. More...
 

Enumeration Type Documentation

◆ ninep_msg_type_t

9P message types.

Enumerator
Tversion 
Rversion 
Tauth 
Rauth 
Tattach 
Rattach 
Terror 
Rerror 
Tflush 
Rflush 
Twalk 
Rwalk 
Topen 
Ropen 
Tcreate 
Rcreate 
Tread 
Rread 
Twrite 
Rwrite 
Tclunk 
Rclunk 
Tremove 
Rremove 
Tstat 
Rstat 
Twstat 
Rwstat 
Tmax 

Definition at line 35 of file 9p.h.