STRUCT YNL_ERROR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ynl_error(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so picture this: it's a Kernel API Manual page, it's about struct ynl_error, and honestly? she's serving "tiny struct, big feelings." let's get into it ✨


🌸 NAME 🌸

struct ynl_error β€” the error you ran into while doing YNL stuff. yes, that error. 🫢


✨ SYNOPSIS ✨

like, here's literally the whole vibe:

struct ynl_error {
    enum ynl_error_code code;
    unsigned int attr_offs;
    char msg[512];
 };

three fields, no notes, periodt. πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • code β€” your errno when it's a low value, or a YNL error code (that's the enum ynl_error_code, iykyk) πŸ’€
  • attr_offs β€” the offset of the bad attribute. this one is for the very advanced users only, like genuinely do not worry about her unless you know why you're here πŸ™ˆ
  • msg β€” the actual error message. the receipts. the "what happened" text πŸ’Œ

πŸ’– Description πŸ’–

so this whole struct is just the error info for when YNL operations fail β€” that's the entire job, and she does it well. 🌈

⚠️ important bestie rule: users should interact with the err member of struct ynl_sock directly. do not go poking at this one on your own, fr fr.

the main exception to that rule? ynl_sock_create. that's the one place where you're allowed to color outside the lines. πŸ–οΈβœ¨


πŸ”₯ SEE ALSO πŸ”₯

go read the kernel file ./tools/net/ynl/lib/ynl.h, and also these iconic little cross-references:

that's the whole friend group, mwah πŸ’‹


and that's the page!! this came out of ./tools/net/ynl/lib β€” the source/version, October 2026 date and all β€” so big ups to the kernel, love that for us. bye bestie, go handle your errors responsibly πŸ§šπŸ’œ

πŸ“¦ where this page comes from