FUNCTION::MKDEV(3stap)

πŸ’– FUNCTION::MKDEV πŸ’–

okay bestie, welcome to the Device Tapset corner of the SystemTap manual ✨ this one is short but she's mighty, and honestly? iconic. no cap.


🌸 NAME 🌸

function::MKDEV β€” she creates a value that you can compare against a kernel device number, aka a kdev_t πŸ’…

like. that's the whole job. and she does it flawlessly.


✨ SYNOPSIS ✨

MKDEV:long(major:long,minor:long)

look at her. two args in, one long out. main character energy fr fr 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • major β€” the intended major device number. you bring the major, she handles the rest πŸ’œ
  • minor β€” the intended minor device number. yeah. that one. the minor. the little guy. the sidekick πŸ¦‹

lowkey important: major is the intended major device number, and minor is the intended minor device number. the word "intended" is doing real work here, so don't sleep on it πŸ™ˆ

🧚 a lil sign-off 🧚

and that's the whole page, bestie!! this was pulled straight from the SystemTap Tapset Reference, and the version + date at the bottom of the original said September 2026 β€” so yeah, she's fresh, she's current, she ate and left no crumbs πŸ‘‘πŸŒΈ

now go forth and compare your kdev_t values with confidence. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from