VOP_VPTOFH(9)
π VOP_VPTOFH π
okay so bestie, welcome to the VOP_VPTOFH(9) page β section 9 of the kernel developer's manual, aka where the NFS server girlies hang out. buckle up, this one's short but iconic β¨
πΈ NAME πΈ
VOP_VPTOFH β turn a vnode into an NFS filehandle, no cap π¦
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/vnode.h>
int
VOP_VPTOFH(struct vnode *vp, struct fid *fhp);
like, that's it. that's the whole signature. she's compact π
π DESCRIPTION π
so the NFS server literally uses this to create an opaque filehandle that uniquely identifies the file β and then an NFS client can use that filehandle later to access the file in the future. it's giving "save your progress" energy, fr fr π₯
its arguments are:
vpβ the vnode you're making a filehandle for. the main character, the one we're describing πfhpβ the return parameter for the filehandle. this is where the filehandle goes on its way back out π
π SEE ALSO π
(the reverse direction is VFS_FHTOVP(9) btw β iykyk π)
π«Ά AUTHORS π«Ά
this manual page was written by Doug Rabson. thank you king, we appreciate you πβ¨
okay that's the whole page, mwah π
btw this glorious little page comes from the Debian version of the Kernel Developer's Manual, dated February 16, 2007 β vintage but still slaying π π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1996 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms