BUS_GET_PROPERTY(9)
π NAME π
okay bestie, meet BUS_GET_PROPERTY β itβs from the Kernel Developer's Manual, section 9, and its whole job is literally βget child's specific property.β Thatβs the vibe. π«Ά
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/bus.h>
ssize_t
BUS_GET_PROPERTY(device_t dev, device_t child, const char *propname,
void *propvalue, size_t size, device_property_type_t type);
π¦ DESCRIPTION π¦
okay so BUS_GET_PROPERTY() is the method driver code calls when it wants to access a childβs specific data stored on the bus. A property has a name and an associated value β thatβs the whole concept, no cap. The implementation shall copy to propvalue at most size bytes. π
BUS_GET_PROPERTY() supports different property types specified via the type argument. The size is guaranteed to be a multiple of the underlying property type. If a type is not supported, BUS_GET_PROPERTY() shall return -1. π
π NOTES π
If propvalue is NULL or size is zero, the implementation shall return only the size of the property. Thatβs it β just the size, bestie. β¨
π RETURN VALUES π
The property size if successful, otherwise -1. Slay. π
π SEE ALSO π
πΈ AUTHORS πΈ
This manual page was written by Bartlomiej Grzesik. iconic behavior, honestly. π
xoxo, your kernel bestie π§ β this pageβs footer energy is Debian, February 18, 2022, BUS_GET_PROPERTY(9), and thatβs the whole sign-off. periodt π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- π the page's license: BSD-2-Clause
- Copyright (c) 2021 Semihalf
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms