fbnic_tlv_attr_get_signed(9)
π fbnic_tlv_attr_get_signed β bestie's guide to the kernel API manual β¨
okay so listen, this is the fbnic_tlv_attr_get_signed page from the Kernel API Manual and honestly? it's a little guy but it delivers. ngl it's short, but we're gonna give it the full main character treatment anyway π«Ά
β¨ NAME β¨
fbnic_tlv_attr_get_signed β retrieve a signed value from a result π
like, that's it, that's the whole vibe. you hand it a result, it hands you back a signed value. iconic behavior, no notes.
π SYNOPSIS π
s64 fbnic_tlv_attr_get_signed (struct fbnic_tlv_msg *attr , s64 def );
look at her. three tokens, one function call, zero drama. s64 in, s64 out, and a def for when things get a little empty inside (we'll get to that π).
πΈ ARGUMENTS πΈ
attrβ the attribute you wanna pull data from. this is your source of truth, your moment, your whole personality for the duration of this call. it's astruct fbnic_tlv_msg *and yes you're passing a pointer, we been knew π¦defβ the default value, and here's the gag: it's what you get back ifattrisNULL. so ifattris giving nothing,defis there to catch you. ans64safety net, fr fr π
π₯ RETURN π₯
you get back a signed 64b value containing integer value. that's a s64, bestie. signed. sixty-four bits. an integer. we love a consistent return type, periodt π
lowkey reminder: signed means it can go negative, so don't go assuming it's all sunshine and positive vibes π
π SEE ALSO π
the kernel file herself lives at:
./drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
and here's the whole friend group β the entire TLV crew, no one left behind π«Ά:
fbnic_tlv_msg_alloc(9)fbnic_tlv_attr_put_flag(9)fbnic_tlv_attr_put_value(9)__fbnic_tlv_attr_put_int(9)fbnic_tlv_attr_put_mac_addr(9)fbnic_tlv_attr_put_string(9)fbnic_tlv_attr_get_unsigned(9)fbnic_tlv_attr_get_string(9)fbnic_tlv_attr_nest_start(9)fbnic_tlv_attr_nest_stop(9)fbnic_tlv_attr_parse_array(9)fbnic_tlv_attr_parse(9)fbnic_tlv_msg_parse(9)fbnic_tlv_parser_error(9)fbnic_tlv_test_create(9)fbnic_tlv_parser_test_attr(9)fbnic_tlv_parser_test(9)
not me listing all seventeen of them π but like, completeness is a love language and we don't do half-friend-groups here π
and that's the page!! π this came out of ./drivers/net/ethernet/meta/fbnic and the doc's dated October 2026, which is honestly so far ahead of us but she's thriving β¨ k byeeee, go get your signed values bestie π
πΈ
π¦ 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