check_input_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ check_input_range(9) ✨

okay so welcome to the Kernel API Manual, bestie πŸ’– this one is short and sweet and it's literally all about checking whether the requested range is valid. no cap.


πŸŽ€ NAME πŸŽ€

check_input_range β€” check if the requested range is valid. that's the name, that's the vibe, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int check_input_range (unsigned long start , size_t len_in );

🌸 ARGUMENTS 🌸

  • start β€” start address of the madvise-requested address range. like, where the range begins, bestie πŸ“
  • len_in β€” length of the madvise-requested address range. the size of the range you're asking about, fr fr πŸ“

πŸ’– RETURN πŸ’–

It gives you 0 if the input range is valid. otherwise? you get an error code. that's the whole return situation, iconic and straightforward ✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./mm/madvise.c

that's it, that's the see-also. go peek at the kernel file if you're curious, iykyk 🫢


β€” brought to you by ./mm, October 2026, and check_input_range(9) πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from