acpi_spi_count_resources(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… acpi_spi_count_resources(9) โ€” from the Kernel API Manual, bestie

okay so picture this: you're deep in ACPI land and you just need a headcount of your SpiSerialBus resources. that's literally the whole function. she counts. she returns. she leaves. iconic behaviour honestly โœจ


๐ŸŒธ NAME ๐ŸŒธ

acpi_spi_count_resources โ€” counts the number of SpiSerialBus resources ๐Ÿงฎโœจ


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

int acpi_spi_count_resources (struct acpi_device *adev );

that's it. one (1) argument, one (1) job. no cap. ๐Ÿ’…


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • adev โ€” an ACPI device. that's your main character right there ๐Ÿ‘‘ she's the one whose resource-list is getting counted.

โญ RETURN โญ

so what do you get back? the number of SpiSerialBus resources in the ACPI-device's resource-list โ€” that's your cute little count ๐Ÿ“

orโ€ฆ a negative error code ๐Ÿ™ˆ (yeah, the "it's giving error" situation ๐Ÿ˜ญ). check it, bestie, fr fr.


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

the whole spi.c friend group came to the party, and they all showed up in the Kernel file ./drivers/spi/spi.c ๐Ÿ™Œ:

__spi_register_driver(9), spi_alloc_device(9), spi_add_device(9), spi_new_device(9), spi_unregister_device(9), spi_register_board_info(9), spi_res_alloc(9), spi_res_free(9), spi_res_add(9), spi_res_release(9), spi_finalize_current_transfer(9), __spi_pump_messages(9), spi_pump_messages(9), spi_take_timestamp_pre(9), spi_take_timestamp_post(9), spi_set_thread_rt(9), spi_get_next_queued_message(9), spi_finalize_current_message(9), spi_queued_transfer(9), spi_flush_queue(9), of_register_spi_devices(9), spi_new_ancillary_device(9), devm_spi_new_ancillary_device(9), acpi_spi_device_alloc(9), spi_target_abort(9), __spi_alloc_controller(9), __devm_spi_alloc_controller(9), spi_get_gpio_descs(9), spi_register_controller(9), devm_spi_register_controller(9), spi_unregister_controller(9), spi_replace_transfers(9), spi_split_transfers_maxsize(9), spi_split_transfers_maxwords(9), spi_set_cs_timing(9), spi_setup(9), spi_optimize_message(9), spi_unoptimize_message(9), devm_spi_optimize_message(9), spi_async(9), spi_sync(9), spi_sync_locked(9), spi_bus_lock(9), spi_bus_unlock(9), spi_write_then_read(9)

likeโ€ฆ that's the entire group chat, nobody got left on read ๐Ÿ’– also hi to ./drivers/spi โ€” that's the directory repping all of this ๐Ÿซถ


and that's the page!! mwah ๐Ÿ’‹ this came out of ./drivers/spi, dated October 2026, under the acpi_spi_count_resources(9) name โ€” slay, periodt, go count some resources bestie ๐ŸŒˆโญ

๐Ÿ“ฆ where this page comes from