STRUCT NI_DEVICE_ROUTES(9)
π struct ni_device_routes(9) β the kernel API manual, but make it make sense
okay so this is struct ni_device_routes from the Kernel API Manual, and bestie, it's literally just a lil container that says "here's every single srcβdest set that's valid for this device". that's it. that's the whole vibe. π
β¨ NAME β¨
struct ni_device_routes β List of all src->dest sets for a particular device.
like, for one specific board. not all of them. one. π«Ά
πΈ SYNOPSIS πΈ
struct ni_device_routes {
const char *device;
int n_route_sets;
struct ni_route_set *routes;
};
(it's giving "three fields and a dream" and honestly? iconic.) β¨
π¦ Members π¦
π device
Name of board/device (e.g. pxi-6733).
the actual name-name, fr fr. like pxi-6733. that's the string that goes here. π
π n_route_sets
Number of route sets that are valid for this device.
just the count, no cap. how many of the route sets in the list below are actually valid for this device. π₯
β routes
List of route sets that are valid for this device.
the actual list, periodt. pointer to the route sets, and every one of them is valid for the device above. π
π SEE ALSO π
- Kernel file
./drivers/comedi/drivers/ni_routes.hβ go read it, iykyk π struct ni_route_set(9)struct ni_route_tables(9)route_is_valid(9)route_register_is_valid(9)ni_get_reg_value_roffs(9)ni_check_trigger_arg_roffs(9)
it's a whole little friend group of manpages, ngl. go say hi to all of them. π§
π lowkey reminder that this is kernel API stuff β you're in the drivers, bestie, not in userspace. be cute but be careful.
that's the whole page!! π from ./drivers/comedi/drivers, dated October 2026, and the title up top was struct ni_device_routes(9). mwah, slay, go read the source. ππ¦πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms