copy_path_name(9)
π copy_path_name(9) β a kernel API moment
okay so bestie, welcome to the copy_path_name(9) page, part of the Kernel API Manual β¨ this one's short and sweet and honestly kind of iconic for it.
πΈ NAME
copy_path_name β copies the src path into dst, and yeah it might truncate it, no cap π«Ά
π¦ SYNOPSIS
int copy_path_name (char *dst , const char *src );
π ARGUMENTS
dstβ the destination buffer, like the cute little bucket everything's getting poured into πͺ£srcβ the source name, the thing being copied π«
β¨ DESCRIPTION
it returns the number of bytes written β and yes, that count includes the trailing nul, so don't come for her when the number looks one bigger than you expected π
π SEE ALSO
- kernel file
./fs/smb/client/misc.c cifs_queue_oplock_break(9)
and that's the whole page, bestie, short king energy π this one lives over in ./fs/smb/client, dated October 2026 β so go read it again sometime, iykyk π
π¦ 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