vmemdup_array_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vmemdup_array_user(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding time now 🫢


✨ NAME ✨

vmemdup_array_user β€” duplicate an array from user space 🌸 like, take that array and give it a little twin


πŸ¦‹ SYNOPSIS πŸ¦‹

void * vmemdup_array_user (const void __user *src , size_t n , size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • src β€” the source address, and it lives in user space, so be normal about it πŸ’«
  • n β€” how many array members you wanna copy, aka the headcount 🧚
  • size β€” the size of one single array member, one (1) lil guy πŸ’…

πŸ”₯ RETURN πŸ”₯

on failure you get an ERR_PTR 😭 and ngl, the result may not be physically contiguous β€” it's giving "spiritually contiguous at best" πŸ’€

free it with kvfree, that's the whole vibe check, no cap πŸ‘‘


⭐ SEE ALSO ⭐

go read those next, iykyk πŸ“šβœ¨


lowkey a whole reading list, but you got this bestie πŸ’–

and that's the page!! brought to you by the fine folks at ./include/linux, dated October 2026, answering to the name vmemdup_array_user(9) β€” slay, periodt, see you in the next man page πŸŽ€πŸŒˆπŸ’œ

πŸ“¦ where this page comes from