serdev_device_write_buf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– serdev_device_write_buf πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes you're literally reading kernel docs rn and I'm so proud of you 🫢 this one's about serdev_device_write_buf, no cap.


✨ NAME ✨

serdev_device_write_buf β€” write data asynchronously, i.e. you hand off your bytes and do not sit around waiting for them, because you have main character energy and other things to do πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int serdev_device_write_buf (struct serdev_device *serdev , const u8
*buf , size_t count );

πŸŽ€ ARGUMENTS πŸŽ€

  • serdev β€” the serdev device, your little guy, the one you're writing to πŸ’–
  • buf β€” the data to be written, aka your bytes, your content, your moment
  • count β€” number of bytes to write. how many. the quantity. be honest about it

🌸 DESCRIPTION 🌸

Write data to the device asynchronously. You drop the bytes off and you leave. Iconic behaviour, honestly.

⚠️ lowkey important, bestie: any accepted data has only been buffered by the controller β€” like, it's in the building, but it is NOT out the door yet. So if you actually need to know the controller write buffer has been emptied for real, use serdev_device_wait_until_sent. Do not skip this step. This is the vibe check your data needs 😭

⭐ RETURN ⭐

The number of bytes written β€” which is less than count if there wasn't enough room in the write buffer (not a glow-up moment, but it happens) β€” or a negative errno on errors πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/tty/serdev/core.c β€” go read it, iykyk πŸ“–


that's the whole page, bestie β€” go buffer some bytes responsibly 🧚

mwah πŸ’‹ this has been the serdev_device_write_buf(9) page, living in ./drivers/tty/serdev, dated October 2026, brought to you by the Kernel API Manual. slay, bye πŸ‘‘

πŸ“¦ where this page comes from