parse_package(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ parse_package(9) πŸ¦‹

okay so bestie, this one is from the Kernel API Manual, and it's all about parsing an acpi package to pull out SAR information. very demure, very kernel-core. πŸ’…


✨ NAME ✨

parse_package β€” parse acpi package for retrieving SAR information


🌸 SYNOPSIS 🌸

acpi_status parse_package (struct wwan_sar_context *context , union acpi_object *item );

πŸŽ€ ARGUMENTS πŸŽ€

  • context β€” pointer to driver context structure. literally the driver's context home base 🫢
  • item β€” acpi_object pointer. yep, that's the object bestie is working with ✨

πŸ’– DESCRIPTION πŸ’–

okay so, the given acpi_object gets iterated so it can retrieve information for each device mode. no cap, that's the whole vibe. πŸ”₯

if a given package corresponding to a specific device mode is faulty, it gets skipped β€” and the specific entry in the context structure will have the default value of zero. so yeah, faulty mode = skipped, that entry stays at 0. periodt. πŸ’€

decoding of subsequent device modes is realized by having "continue" statements in the for loop when an error is encountered while parsing a given device mode. it's giving "bad parse? continue, we move." πŸ¦‹


⭐ RETURN ⭐

  • AE_OK if success
  • AE_ERROR on error

🌈 SEE ALSO 🌈


xoxo, your kernel bestie πŸ’… β€” this page came from ./drivers/platform/x86/intel/i..., dated October 2026. πŸŽ€

πŸ“¦ where this page comes from