STRUCT NI_ROUTE_SET(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ struct ni_route_set(9) โœจ

okay so this is a page straight outta the Kernel API Manual bestie, and it's about struct ni_route_set โ€” a little baby struct that groups together a whole bunch of destinations that all share one common source. it's giving "found family" honestly ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

struct ni_route_set โ€” literally just a set of destinations that all have a common source. that's the whole vibe. no cap. โœจ


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

here's the whole thing, copy it exactly bestie, don't be creative:

struct ni_route_set {
    int dest;
    int n_src;
    int *src;
 };

like, that's it. three fields. short and iconic ๐Ÿ‘‘


๐Ÿ’… Members ๐Ÿ’…

okay let's meet the cast, main character energy all around:

  • dest โ€” the destination for, like, every single source in this route set. one destination to rule them all ๐Ÿ’–
  • n_src โ€” how many sources this route set is holding down. the headcount, the attendance sheet, the n in the src ๐Ÿงฎ
  • src โ€” the list of sources that all map to that same destination. they all point to the same place, periodt ๐ŸŒˆ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

go read these next, iykwim, we're going on a little journey:


ngl bestie, the src field is a pointer, so it's not living inside the struct โ€” it's pointing off somewhere else. keep track of it, okay? ๐Ÿ™ˆ

and that's the whole page!! mwah ๐Ÿ’‹ this one came from ./drivers/comedi/drivers and it's dated October 2026 โ€” so mark your calendar, set a reminder, screenshot it, idc, just don't forget it ๐Ÿ’œโœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from