cik_get_all...nfo_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cik_get_allowed_info_register β€” Kernel API Manual, but make it cute

okay so bestie, welcome to the Kernel API Manual ✨ β€” today's main character is cik_get_allowed_info_register(9), and honestly? She's a tiny little function with one job and she does it. no cap.

🌸 NAME

cik_get_allowed_info_register β€” literally just fetches the register for the info ioctl. that's it. that's the whole vibe. πŸŽ€


✨ SYNOPSIS

int cik_get_allowed_info_register (struct radeon_device *rdev , u32 reg
, u32 *val );

three arguments, one int coming back at you. lowkey elegant ngl πŸ¦‹


🫢 ARGUMENTS

  • rdev β€” a radeon_device pointer, aka the whole graphics device vibe check pass πŸ’–
  • reg β€” the register offset, measured in bytes (bytes!! don't forget, bestie, the units matter) πŸ“
  • val β€” the register value. she's a pointer, so she gets filled in for you πŸŽ€

πŸ‘‘ DESCRIPTION

Returns 0 for success or -EINVAL for an invalid register. that's the entire personality. two outcomes, zero drama, absolutely iconic behavior. if you get a 0 you slayed; if you get -EINVAL the register was not it and the function said so to your face πŸ’€

fr fr β€” the return value is the whole story here. no extra hidden modes, no secret third thing. 0 or -EINVAL. periodt.

🌈 SEE ALSO

she does NOT roll alone, okay? this whole friend group lives in the kernel file ./drivers/gpu/drm/radeon/cik.c and here's the full squad, all (9) section, every single one, no gatekeeping πŸ”₯:

that's the whole group chat. yes, all of them. iykyk πŸ’œ


✿ and that's the page, bestie ✿

this little legend lives at ./drivers/gpu/drm/radeon and the version of the page you're reading is dated October 2026 πŸ—“οΈπŸ’– β€” go forth, pass a valid register, and get that sweet sweet 0. mwah πŸ«ΆπŸ’…

πŸ“¦ where this page comes from