kbasename(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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