ksmbd_vfs_ke...art_removing(9)
π ksmbd_vfs_kern_path_start_removing(9) β Kernel API Manual, but make it make sense
okay so bestie, welcome to the glow-up edition of the Kernel API Manual π this one is a function name so long it's literally giving "my parents named me after the whole family tree" energy, so let's break it down together, k? π
β¨ NAME β¨
ksmbd_vfs_kern_path_start_removing β look up a file and grab the path info before you yeet it into the void ποΈβ¨
π¦ SYNOPSIS π¦
int ksmbd_vfs_kern_path_start_removing (struct ksmbd_work *work , char
*filepath , unsigned int flags , struct path *path , bool caseless );
πΈ ARGUMENTS πΈ
workβ theworkstruct, just vibing there being itself, no cap π«filepathβ the file path, and it's relative to the share, okurrr? don't come at it with an absolute path, it doesn't know that life π«flagsβ lookup flags, the lil settings that change how the lookup behaves βοΈpathβ if the lookup succeeds, this is where the path info gets handed back to you π«Ά like a lil giftcaselessβ caseless filename lookup, soFile.TXTandfile.txtcan be besties π
π DESCRIPTION π
okay so here's the tea π β you do the lookup, right? but you do not cross over any mount point, bestie, nope, not today, we stay in our lane π§
and on return, the parent of path->dentry will be locked π and write-access to the filesystem will have been gained βοΈβ¨
that's a big deal, so like, respect the vibe check on that one π§
β RETURN β
0 if the file was found β slay, we got it π β otherwise you get an error π
π SEE ALSO π
Kernel file ./fs/smb/server/vfs.c β plus literally this whole squad right here π«Ά
ksmbd_vfs_create(9)ksmbd_vfs_mkdir(9)check_lock_range(9)ksmbd_vfs_read(9)ksmbd_vfs_write(9)ksmbd_vfs_getattr(9)ksmbd_vfs_fsync(9)ksmbd_vfs_remove_file(9)ksmbd_vfs_link(9)ksmbd_vfs_truncate(9)ksmbd_vfs_listxattr(9)ksmbd_vfs_getxattr(9)ksmbd_vfs_setxattr(9)ksmbd_vfs_set_fadvise(9)ksmbd_vfs_empty_dir(9)ksmbd_vfs_lookup_in_dir(9)ksmbd_vfs_kern_path(9)ksmbd_vfs_init_kstat(9)
π reminder bestie: this page is chillin' in ./fs/smb/server, and it's dated October 2026 β future icon behavior fr fr ποΈπ
k that's the whole page, ily, go lock some dentries responsibly ππ¦β¨
π¦ 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