DC_SERIAL_DEVICE_FREE(3)
π DC_SERIAL_DEVICE_FREE(3) π
okay so bestie, welcome to the DC_SERIAL_DEVICE_FREE(3) page from the Library Functions Manual β yes that's the manual name, we're fancy here π
β¨ NAME β¨
dc_serial_device_free β destroy the serial device and free, like, all the resources. every last one. we're not leaving a single byte behind, periodt π
π¦ LIBRARY π¦
library βlibdivecomputerβ β that's the one, that's our girl π«Ά
πΈ SYNOPSIS πΈ
#include <libdivecomputer/serial.h>
void
dc_serial_device_free(dc_serial_device_t *device);
like, that's the whole thing. no cap, it's one function π§
π DESCRIPTION π
Destroy the serial device and free all resources. that's it, that's the assignment, and she ate π₯
where do these devices come from, you ask? ok so β the serial device is usually found by searching through dc_serial_iterator_new(3). so you go find it, you love it, and then you let it go with this function π it's giving closure.
lowkey important: this is the destroy function, so once you call it, the device is gone and the resources are freed. don't come back for it afterward, bestie π
β SEE ALSO β
dc_serial_iterator_new(3)β where you find the device in the first place π
π AUTHORS π
- The library βlibdivecomputerβ library was written by Jef Driesen,
jef@libdivecomputer.org. iconic. we stan π - This manpage is written by Vincent Hagen,
vinnie@script4web.nl. also iconic, thank you for your service π«‘β¨
and that's a wrap, bestie π this page dropped with Debian, dated June 5, 2020 β mwah, go free those resources responsibly π ππ
π¦ where this page comes from
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2020 Vincent Hagen <vinnie@script4web.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms