p9mode2unixmode(9)
π NAME π
okay so this is p9mode2unixmode(9) from the Kernel API Manual, and it's literally the βconvert plan9 mode bits to unix mode bitsβ girlie π
β¨. That's the whole name, no cap.
β¨ SYNOPSIS β¨
umode_t p9mode2unixmode (struct v9fs_session_info *v9ses , struct p9_wstat *stat , dev_t *rdev );
π¦ ARGUMENTS π¦
v9sesβ the v9fs session information π«Ά. Like, the session info the function needs.statβ thep9_wstatfrom which the mode need to be derived πΈ. That's where the mode comes from, bestie.rdevβ the major number and minor number when we're dealing with device files ππ.
π SEE ALSO π
Kernel file: ./fs/9p/vfs_inode.c β go peek πβ¨
the whole 9p bestie extended universe:
unixmode2p9mode(9)p9mode2perm(9)v9fs_uflags2omode(9)v9fs_blank_wstat(9)v9fs_alloc_inode(9)v9fs_free_inode(9)v9fs_evict_inode(9)v9fs_at_to_dotl_flags(9)v9fs_dec_count(9)v9fs_remove(9)v9fs_create(9)v9fs_vfs_create(9)v9fs_vfs_mkdir(9)v9fs_vfs_lookup(9)v9fs_vfs_unlink(9)v9fs_vfs_rmdir(9)v9fs_vfs_rename(9)v9fs_vfs_getattr(9)v9fs_vfs_setattr(9)v9fs_stat2inode(9)v9fs_vfs_get_link(9)v9fs_vfs_mkspecial(9)v9fs_vfs_symlink(9)v9fs_vfs_link(9)v9fs_vfs_mknod(9)
mwah π β sourced from ./fs/9p, dated October 2026. bye bestie, go convert those bits ππ
π¦ 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