of_machine_get_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_machine_get_match β€” Kernel API Manual, section 9 πŸ’–

okay bestie, so this is a section 9 kernel API page, and honestly? it's a short one. a little snack. a lil' appetizer of a function. but we're gonna learn it properly because that's just who we are πŸ’…


✨ NAME ✨

of_machine_get_match β€” the girlie who tests the root of the device tree against an of_device_id array. that's it. that's the whole job. and she does it flawlessly, no cap.


🌸 SYNOPSIS 🌸

const struct of_device_id * of_machine_get_match (const struct
of_device_id *matches );

like, one argument. one return. immaculate vibes. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • matches β€” a NULL terminated array of of_device_id match structures, i.e. the lil' list she's gonna search through. the NULL at the end is literally the periodt of the list β€” it's how she knows to stop looking. πŸ›‘

πŸ’œ DESCRIPTION πŸ’œ

returns the matched entry, or NULL if nothing matched. that's the whole description, bestie β€” she said "short and sweet, i'm busy". 😭✨

so like, if she finds her match you get a pointer to that entry, and if she doesn't? NULL. no drama, no error code, no essay. just NULL. lowkey iconic.


πŸ”₯ SEE ALSO πŸ”₯

okay so this is the part where the manpage just... lists everyone she knows. it's giving group chat roster. it's giving "mutuals". there's a Kernel file ./drivers/of/base.c in here too, so go say hi to the source if you want the full lore πŸ‘‘

forty-four entries. i counted. we don't gatekeep here 🫢


quick vibe check: this page has no warnings, no bugs section, no exit statuses, no env vars β€” she's a minimal queen. everything you need is up there. don't go inventing extra options, bestie, that's not the assignment πŸ’€

and that's the page! brought to you by the source directory ./drivers/of, dated October 2026 🌈 β€” mwah, go read some more kernel docs, you're doing amazing sweetie πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from