Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
p9_qid Struct Reference

#include <9p.h>

Data Fields

u8 type
 
u32 version
 
u64 path
 

Detailed Description

struct p9_qid - file system entity information : 8-bit type &p9_qid_t

Version
: 16-bit monotonically incrementing version number : 64-bit per-server-unique ID for a file system element

qids are identifiers used by 9P servers to track file system entities. The type is used to differentiate semantics for operations on the entity (ie. read means something different on a directory than on a file). The path provides a server unique index for an entity (roughly analogous to an inode number), while the version is updated every time a file is modified and can be used to maintain cache coherency between clients and serves. Servers will often differentiate purely synthetic entities by setting their version to 0, signaling that they should never be cached and should be accessed synchronously.

See Also://plan9.bell-labs.com/magic/man2html/2/stat

Definition at line 368 of file 9p.h.

Field Documentation

Definition at line 371 of file 9p.h.

Definition at line 369 of file 9p.h.

u32 version

Definition at line 370 of file 9p.h.


The documentation for this struct was generated from the following file: