DEVICE_DELETE_CHILD(9)

πŸ’– NAME πŸ’–

okay bestie, welcome to DEVICE_DELETE_CHILD(9) from the Kernel Developer's Manual πŸ’… this is the one that says how to delete a child from a device. No cap.

device_delete_child β€” delete a child from a device ✨


✨ SYNOPSIS ✨

#include <sys/param.h>
#include <sys/bus.h>

int
device_delete_child(device_t dev, device_t child);

πŸ¦‹ DESCRIPTION πŸ¦‹

The specified device is removed from dev and deleted. If the device is currently attached, it is first detached (see DEVICE_ATTACH(9) and DEVICE_DETACH(9)). That's the whole vibe. Periodt.

🌸 RETURN VALUES 🌸

Zero is returned on success, otherwise an error is returned. So if you get 0, slay. If not, it's giving error. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Doug Rabson. iconic. πŸ‘‘


xoxo, this was Debian's page from June 16, 1998, for DEVICE_DELETE_CHILD(9) πŸŽ€πŸ’–

πŸ“¦ where this page comes from