copy_path_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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


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