VOP_VPTOFH(9)
โจ VOP_VPTOFH โจ
okay so bestie, welcome to the Kernel Developer's Manual, section 9 โ this is the page for VOP_VPTOFH, and it's literally the glow-up that turns a vnode into an NFS filehandle ๐
๐ NAME ๐
VOP_VPTOFH โ turn a vnode into an NFS filehandle
like. that's it. that's the whole job. iconic.
๐ธ SYNOPSIS ๐ธ
#include <sys/param.h>
#include <sys/vnode.h>
int
VOP_VPTOFH(struct vnode *vp, struct fid *fhp);
yes you need both headers, don't @ me, just include them ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
So the NFS server uses this one to cook up an opaque filehandle โ and when we say opaque we mean it, the contents are giving mystery, do not perceive them ๐ฎ โ that uniquely identifies the file. Once that handle exists, an NFS client can use it later to get back at the file. it's giving "remember me" but for inodes ๐
its arguments are:
vpโ the vnode you wanna make a filehandle for. the main character ๐ซถfhpโ return parameter for the filehandle. it's a return param bestie, so that's where the answer lands, not where you put a question ๐
๐ SEE ALSO ๐
(the reverse direction is VFS_FHTOVP(9) btw, iykyk ๐)
๐ AUTHORS ๐
This manual page was written by Doug Rabson. thank you Doug, absolute legend, no cap ๐
and that's the vibe check, bestie โ this page came from Debian, dated February 16, 2007, and it ate. periodt ๐โจ
๐ฆ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 ยท BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 ยท BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 ยท BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 ยท BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 ยท BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 ยท BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1996 Doug Rabson
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms