memdup(9)
π memdup(9) β Kernel API Manual, bestie edition π
okay so welcome to the memdup page, part of the Kernel API Manual β¨ this one's short and sweet and honestly? iconic for it. no cap.
πΈ NAME πΈ
memdup β duplicate region of memory π«Ά
that's it. that's the whole job. it duplicates a region of memory. lowkey the most well-adjusted function on the block.
β¨ SYNOPSIS β¨
void * memdup (const void *src , size_t len );
look at her. returns a void *, takes exactly two things, no drama, no surprises. main character energy fr fr π
π¦ ARGUMENTS π¦
srcβ memory region to duplicate. like, the actual memory you want copied. hand it over πlenβ memory region length. how much of it we're talking about. the size, the length, the whole vibe check of how many bytes we're duplicating π
ngl both of these are mandatory in spirit βsrcis what,lenis how much. don't mix them up bestie π
π SEE ALSO π
go touch some adjacent grass, all under the kernel file ./tools/lib/string.c, and also these fine pages:
the whole string-utility friend group π iykyk
π so yeah, that's the whole page. it's giving "small but mighty". go duplicate some memory responsibly, bestie. mwah π
β¨ that's a wrap β¨ this lil beauty lives in ./tools/lib, dated October 2026, and it's filed under memdup(9) β remember the name, she's iconic ππ
π¦ 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