spi_res_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_res_free(9)

okay so first things first, bestie: this page lives in the Kernel API Manual (yes, the (9) girlies, the kernel internals section, we love her) and it's about one little function that does one little thing. Iconic minimalism, honestly.


✨ NAME ✨

spi_res_free β€” free an SPI resource πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

void spi_res_free (void *res );

that's it. that's the whole signature. no return value, no drama, void in and void out, periodt. πŸ’…

🌸 ARGUMENTS 🌸

  • res β€” pointer to the custom data of a resource 🫢 like, the pointer you're handing over so it can be freed. it's the custom data of the resource, that's the vibe, that's what it is.

πŸ”₯ SEE ALSO πŸ”₯

okay so this is the part where the kernel is like "and here's everyone else at this party" β€” it's a lot of names, but they're all literally listed so I'm giving you all of them, no cap, no skips, in order:

Kernel file ./drivers/spi/spi.c (yes, that's the kernel file reference right there at the top of the list, go look at it, it's where the magic happens 🧚), __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_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_count_resources(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… forty-something cross-references. she's connected. she knows everybody. main character energy fr fr πŸ‘‘

πŸ’€ friendly reminder that spi_res_free takes a void * and gives you nothing back β€” it's a void function, so don't go assigning a return value anywhere, bestie, there isn't one.

and that's the whole page! short and sweet, just like she is. this one's from ./drivers/spi, dated October 2026, and it'll always be findable as spi_res_free(9) β€” mwah, love that for her πŸŒˆπŸ’–β­

πŸ“¦ where this page comes from