rsu_device_..._from_packed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rsu_device_..._from_packed(9) πŸ’…

okay bestie, so we're deep in the Kernel API Manual today and this page is literally called rsu_device_..._from_packed(9) β€” yes the ellipsis is part of the name, no I will not be explaining that, it's giving "someone let the function name run wild at the christening" πŸ’€


✨ NAME ✨

rsu_device_info_set_from_packed β€” decodes one single RSU device-info SMC word. one. that's the whole job. she's focused, she's specific, she's an icon πŸŽ€


🌸 SYNOPSIS 🌸

void rsu_device_info_set_from_packed (struct flash_device_info *di ,
unsigned long packed );

like, no return value, no drama, void and done 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • di β€” the slot you're filling, bestie. it's a struct flash_device_info * and she's the destination. it's giving "you had one job and it was to be filled" ✨
  • packed β€” the register value, and listen, she's PACKED for a reason πŸŽ€ here's the bit layout, do not mix these up:
    • [63:32] β€” the erase_size lives up here
    • [31:0] β€” the size lives down here

and the whole thing comes from INTEL_SIP_SMC_RSU_GET_DEVICE_INFO, iykyk πŸ’œ

ngl, the high half and low half split is exactly the kind of thing where you glance and go "yeah yeah whatever" and then you swap them and everything is undone 😭 check your bit ranges, babes every single time

πŸ‘‘ SEE ALSO πŸ‘‘

go off, go read these, they're the whole friend group 🫢

like, that's a whole group chat and every one of them is a callback, periodt πŸ”₯


and that's the page, mwah πŸ’– this came out of ./drivers/firmware in October 2026 β€” kernel API manual, version of the same name, slay. go decode your little word, bestie, you're gonna do amazing 🌈⭐

πŸ“¦ where this page comes from