init_new_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– init_new_context β€” Kernel API Manual πŸ’–

✨ NAME ✨

init_new_context β€” initialize the context of a new mm_struct, bestie. That's the whole assignment. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the signature, and yes you need it exactly like this β€” no cap:

int init_new_context (struct task_struct *tsk , struct mm_struct *mm );

🌸 ARGUMENTS 🌸

  • tsk β€” the task struct for the mm. Like, the task-side bestie that goes with this mm. 🫢
  • mm β€” the new mm struct. The fresh new main character mm_struct. ✨

πŸ¦‹ RETURN πŸ¦‹

  • 0 on success β€” slay, we love a clean win. πŸŽ€
  • -errno on failure β€” not slay, but that's literally the return value. 😭

🌈 SEE ALSO 🌈


signed from ./include/asm-generic, dated October 2026, page init_new_context(9) β€” byeee bestie πŸ’…πŸ«Ά

πŸ“¦ where this page comes from