STRUCT V9FS_SESSION_INFO(9)
π©· struct v9fs_session_info(9) β per-instance session information π©·
okay so this is from the Kernel API Manual, bestie, and itβs the struct v9fs_session_info page β yes, weβre doing kernel struct lore today π
πΈ NAME πΈ
struct v9fs_session_info β per-instance session information. thatβs the whole name vibe, no cap β¨
π SYNOPSIS π
hereβs the struct exactly as it appears, no edits, no skipping, iykyk:
struct v9fs_session_info {
unsigned int flags;
unsigned char nodev;
unsigned short debug;
unsigned int afid;
unsigned int cache;
unsigned int ndentry_timeout_ms;
#ifdef CONFIG_9P_FSCACHE;
char *cachetag;
struct fscache_volume *fscache;
#endif;
char *uname;
char *aname;
unsigned int maxdata;
kuid_t dfltuid;
kgid_t dfltgid;
kuid_t uid;
struct p9_client *clnt;
struct list_head slist;
struct rw_semaphore rename_sem;
long session_lock_timeout;
struct rcu_head rcu;
};
π¦ Members π¦
member-by-member tea, bestie β these are the one-liners the page gives us π
flagsβ session options of typep9_session_flags.nodevβ set to1to disable device mapping.debugβ debug level.afidβ authentication handle.cacheβ cache mode of typep9_cache_bits.ndentry_timeout_msβ Negative dentry caching retention time.cachetagβ the tag of the cache associated with this session. this one lives inside theCONFIG_9P_FSCACHEblock, periodt πfscacheβ session cookie associated with FS-Cache.unameβ string user name to mount hierarchy as.anameβ mount specifier for remote hierarchy.maxdataβ maximum data to be sent/recvd per protocol message.dfltuidβ default numeric userid to mount hierarchy as.dfltgidβ default numeric groupid to mount hierarchy as.uidβ ifV9FS_ACCESS_SINGLE, the numeric uid which mounted the hierarchy.clntβ reference to 9P network client instantiated for this session.slistβ reference to list of registered 9p sessions.
and yeah, rename_sem, session_lock_timeout, and rcu are in the struct too β the original member rundown doesnβt give them their own one-liners, so Iβm not out here inventing tea π
π Description π
This structure holds state for each session instance established during a sys_mount.
Bugs: there seems to be a lot of state which could be condensed and/or removed.
likeβ¦ the struct said βI contain multitudesβ and the page said βmaybe too many multitudesβ π
π₯ SEE ALSO π₯
- Kernel file
./fs/9p/v9fs.h enum p9_cache_shortcuts(9)enum p9_cache_bits(9)v9fs_get_inode_from_fid(9)v9fs_get_new_inode_from_fid(9)
okay bestie, thatβs the page π
β source/version is ./fs/9p, date is October 2026, and this sign-off is officially iconic πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms