awcc_op_get_resource_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… awcc_op_get_resource_id πŸ’…

okay so this is a page out of the Kernel API Manual β€” yes, the kernel has its own manual, and yes, it's iconically dry, so let me be your tour guide bestie 🫢 We're looking at awcc_op_get_resource_id, a lil function that goes and fetches you a resource ID. Let's get into it ✨


🌸 NAME 🌸

awcc_op_get_resource_id β€” Get the resource ID at a given index

Like, you give it an index, it gives you back the ID. Simple. Elegant. Ate. πŸ’…


✨ SYNOPSIS ✨

int awcc_op_get_resource_id (struct wmi_device *wdev , u8 index , u8
*out );

That's the whole signature, no cap. Returns an int, takes a struct wmi_device *, a u8 index, and a u8 pointer for the output πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • wdev β€” the AWCC WMI device. That's your main character right there, the thing you're talking to πŸ‘‘
  • index β€” the Index. Yes bestie, just "Index." That's the whole description. Iconic minimalism honestly πŸ’€
  • out β€” Value returned by the WMI call. This is where the answer lands, so point it somewhere real πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: Get the resource ID at a given index. That's the assignment, and it understood it. ✨

Resource IDs are listed in the following order:

  • Fan IDs
  • Sensor IDs
  • Unknown IDs
  • Thermal Profile IDs

The way this ordering matters is lowkey important β€” the index you pass is walking down that list, so the order is the whole map, iykyk πŸ—ΊοΈ

And if you wanna know the total number of IDs of a given type, you get that with AWCC_OP_GET_SYSTEM_DESCRIPTION. That's the move for "how many of these are there actually" energy 🌈


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰
  • -errno on failure 😭
fr fr check that return value, don't just assume it slayed πŸ’€

🧚 SEE ALSO 🧚

Kernel file ./drivers/platform/x86/dell/alienware-wmi-wmax.c β€” go read the source, it's giving lore πŸ‘‘


so yeah, that's the whole page πŸ’œ huge thank you to the Kernel API Manual β€” this one's from ./drivers/platform/x86/dell, dated October 2026 (yes, October 2026, we're ahead of schedule bestie ⭐). now go forth and get those resource IDs, mwah πŸ«ΆπŸ’–

πŸ“¦ where this page comes from