__spi_register_driver(9)
πΈ NAME πΈ
okay so bestie, welcome to __spi_register_driver(9) from the Kernel API Manual β this is the function that registers a SPI driver. literally its whole job. iconic behavior π
β¨
π SYNOPSIS π
signature drop, no cap:
int __spi_register_driver (struct module *owner , struct spi_driver
*sdrv );
π ARGUMENTS π
ownerβ the owner module of the driver to register. like, whose module is this? gotta claim your driver, bestie π«Άsdrvβ the driver to register. the main character of this whole operation π
π΄ CONTEXT π΄
this one can sleep. yes fr fr, blocking is allowed here β no panic, bestie π€
β RETURN β
returns zero on success π otherwise you get a negative error code π so check it, okay?
π¦ SEE ALSO π¦
the kernel file is ./drivers/spi/spi.c β that's where this lives. and here's the whole friend group, all invited to the group chat π¬:
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_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)
source/version: ./drivers/spi Β· date: October 2026 Β· page: __spi_register_driver(9) β mwah, bye bestie π«ΆππΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms