serdev_device_add(9)
π serdev_device_add(9) π
hiii bestie, welcome to the Kernel API Manual β¨ today's main character is serdev_device_add(9), and she is literally here to add a device that was already constructed via serdev_device_alloc(). no cap, that's the whole vibe π¦
π NAME π
serdev_device_add β add a device previously constructed via serdev_device_alloc() π
π SYNOPSIS π
int serdev_device_add (struct serdev_device *serdev );
okay so it returns an int and takes exactly one argument. slay β¨
π ARGUMENTS π
serdevβ theserdev_deviceto be added. that's it, that's the queen π
π SEE ALSO π
kernel file: ./drivers/tty/serdev/core.c
go read these too, iykyk π
serdev_device_remove(9)serdev_device_write_buf(9)serdev_device_write(9)serdev_device_alloc(9)serdev_controller_alloc(9)of_find_serdev_controller_by_node(9)serdev_acpi_get_uart_resource(9)serdev_controller_add(9)serdev_controller_remove(9)__serdev_device_driver_register(9)
mwah π source/version: ./drivers/tty/serdev β date: October 2026. periodt π«Ά
π¦ 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