spi_get_next_queued_message(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_get_next_queued_message(9) β€” like, the Kernel API Manual edition πŸŽ€

okay bestie, gather round, because this one is short and sweet and honestly kind of iconic in its simplicity ✨


✨ NAME ✨

spi_get_next_queued_message β€” the little function a driver calls to check if there's anything queued up and waiting πŸ’Œ


🌸 SYNOPSIS 🌸

struct spi_message * spi_get_next_queued_message (struct spi_controller
*ctlr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctlr β€” the controller you want to peek at for queued messages πŸ‘€ that's it, that's the whole argument, no cap

πŸ’– DESCRIPTION πŸ’–

If there are more messages sitting in the queue, the next message gets returned from this call 🫢. Like, you ask "is there another one?" and if yes, boom, here's your message. The way that it just hands it to you 😭 so efficient.


⭐ RETURN ⭐

The next message in the queue β€” or NULL if the queue is empty πŸ’€ (empty queue = nothing for you, bestie, sorry, go touch some registers 🌈).


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/spi/spi.c, and honestly the whole SPI squad came through for the vibe check β€” __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_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). periodt. πŸ’…πŸ”₯


ngl this one ate and left zero crumbs β€” read the whole list, they're all part of the friend group πŸ§šπŸ’œ

okay that's the page, love u, bye πŸŽ€ this cutie lives in ./drivers/spi and the manual's dated October 2026 β€” stamped and slayed, see u in the next manpage bestie πŸ˜­πŸ’•

πŸ“¦ where this page comes from