BUS_GENERIC_READ_IVAR(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

okay bestie, we're in the Kernel Developer's Manual today and the page is BUS_GENERIC_READ_IVAR(9) β€” plus its sibling BUS_GENERIC_WRITE_IVAR β€” and honestly? It's the shortest read ever. Let's go πŸŽ€


✨ NAME ✨

bus_generic_read_ivar, bus_generic_write_ivar β€” the generic implementation of BUS_READ_IVAR and BUS_WRITE_IVAR for buses πŸ’…

🌸 SYNOPSIS 🌸

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

int
bus_generic_read_ivar(device_t dev, device_t child, int index,
    uintptr_t *result);

int
bus_generic_write_ivar(device_t dev, device_t child, int index,
    uintptr_t value);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this is going to be the fastest description section you've ever read in your life, no cap:

These functions simply return ENOENT.

That's it. That's the whole vibe. They don't read anything, they don't write anything, they just hand you ENOENT and go about their day πŸ’€ Like… iconic? Unbothered? Main character energy fr fr.

bus_generic_read_ivar takes dev, child, index and a uintptr_t *result, bus_generic_write_ivar takes dev, child, index and a uintptr_t value β€” and both of them return ENOENT regardless. Periodt.

not me expecting lore and getting ENOENT 😭 bestie this is literally the whole function

πŸ”₯ SEE ALSO πŸ”₯

go read those if you want actual substance, iykyk 🫢

πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Doug Rabson. Shoutout Doug, king behaviour 🌈⭐


and that's the whole page, bestie β€” no crumbs left behind πŸ“ This was the BUS_GENERIC_READ_IVAR(9) page from the Kernel Developer's Manual, Debian flavoured, dated January 15, 2017. mwah πŸ’‹πŸ§šπŸ’œ

πŸ“¦ where this page comes from