of_machine_get_match_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_machine_get_match_data πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this one's a lil function from the device tree corner of the kernel, and honestly? it's giving "short and sweet, does exactly one thing." no cap.


✨ NAME ✨

of_machine_get_match_data β€” tells you if the root of the device tree has a matching of_match structure πŸŽ€

like literally, that's the whole job. it checks the root, and if something matches, you get the data. if not? you get nothing. iconic minimalism.


🌸 SYNOPSIS 🌸

const void * of_machine_get_match_data (const struct of_device_id *matches);

she takes one pointer and hands you back a const void * β€” that's it, that's the whole signature. slay πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • matches β€” a NULL-terminated array of of_device_id match structures to search in. yep, NULL-terminated means the list just keeps going until it hits a NULL and then it stops, so pls don't forget your terminator or she'll keep reading forever (and that's not a vibe). 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

returns the data associated with the matched entry, or NULL. 🎯

that's it. that's the description. no hidden lore, no extra flags, no surprises β€” she matches, she returns the data, she goes home. periodt. ✨

lowkey a perfect little function ngl β€” one arg, one return, zero drama. main character energy fr fr.

🌈 SEE ALSO 🌈

kernel file ./drivers/of/base.c β€” that's where she lives, go say hi 🧚

and here's the whole of crew, all the of_* besties you might wanna meet next:

that's 44 whole friends, i counted, i'm obsessed πŸ˜­πŸ’–


okay that's the page!! tysm for reading, mwah 🫢 this one shipped out of ./drivers/of and the date on it is October 2026 β€” so yeah, it's literally from the future, no cap. go read some more of_*(9) pages, they miss you. bye bestie!! πŸ’…βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from