kbasename(9)
π kbasename(9) π
Okay so bestie, welcome to the Kernel API Manual page for kbasename(9) β itβs giving βgrab the filename from the end of a pathβ energy, and itβs honestly iconic. π
πΈ NAME πΈ
kbasename β return the last part of a pathname.
β¨ SYNOPSIS β¨
const char * kbasename (const char *path );
π ARGUMENTS π
pathβ the path to extract the filename from, bestie. π«Ά
π RETURN π
Pointer to the filename portion inside path. If no / exists, returns path unchanged. No cap. β¨
π¦ SEE ALSO π¦
Kernel file ./include/linux/string.h is also in the group chat: memdup_array_user(9), vmemdup_array_user(9), strscpy(9), strscpy_pad(9), mem_is_zero(9), sysfs_match_string(9), memzero_explicit(9), strtomem_pad(9), strtomem(9), memtostr(9), memtostr_pad(9), memset_after(9), memset_startat(9), str_has_prefix(9), strstarts(9), strends(9).
Catch you from the ./include/linux source corner, dated October 2026 β bye bestie, slay 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