attach, auth – messages to establish a connection
message serves as a fresh introduction from a user on
the client machine to the server.
The message identifies the user
and may select
the file tree to access
argument specifies a fid previously established by an
message, as described below.
As a result of the
transaction, the client will have a connection to the root
directory of the desired file tree,
An error is returned if
is already in use.
The server’s idea of the root of the file tree is represented by the returned
If the client does not wish to authenticate the connection, or knows that
authentication is not required, the
field in the
message should be set to
If the client does wish to authenticate, it must acquire and validate an
message before doing the
a new fid to be established for authentication, and the
that will be those of the following
If the server does not require authentication, it returns
If the server does require authentication, it returns
defining a file of type
that may be read and written (using
messages in the usual way) to execute an authentication protocol.
That protocol’s definition is not part of 9P itself.
Once the protocol is complete, the same
is presented in the
message for the user, granting entry.
The same validated
may be used for multiple
messages with the same
transaction will be generated for kernel devices
when a system call evaluates a file name
generates an attach on the kernel device
message to the remote file server.
When the kernel boots, an
is made to the root device,
and then an
is made to the requested file server machine.
transaction is generated by the
system call or by the first
system call on an uninitialized connection.