fbnic_tlv_attr_parse(9)
π fbnic_tlv_attr_parse(9) β¨
okay bestie, welcome to the Kernel API Manual π«Ά this one's a lil function with a big job and honestly? she ate. let's get into it πΈ
π NAME π
fbnic_tlv_attr_parse β she parses attributes into a list of attribute results, no cap β¨
π¦ SYNOPSIS π¦
int fbnic_tlv_attr_parse (struct fbnic_tlv_msg *attr , int len , struct
fbnic_tlv_msg **results , const struct fbnic_tlv_index *tlv_index );
like, that's the whole vibe right there π
πΈ ARGUMENTS πΈ
attrβ the start of the attributes in the message, i.e. where the good stuff begins πlenβ the length of those attributes in the message, so she knows how far to read π₯resultsβ an array of pointers where she stashes the results of parsing, lowkey her fave part πtlv_indexβ the list of TLV attributes to be parsed from the message, aka the shopping list π
β RETURN β
zero on success, or a negative value on error π that's it, that's the whole rule.
π DESCRIPTION π
so basically she takes a list of attributes plus a parser definition, and she captures the results in the results array so you can have the data extracted later π€ it's giving "do the work now, chill later" and honestly? iconic π§
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/meta/fbnic/fbnic_tlv.cβ go read it, iykyk π 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_signed(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_msg_parse(9)fbnic_tlv_parser_error(9)fbnic_tlv_test_create(9)fbnic_tlv_parser_test_attr(9)fbnic_tlv_parser_test(9)
like, the whole friend group fr fr π
ok that's the page!! mwah π this lil drop came to you from./drivers/net/ethernet/meta/fbnic, dated October 2026, and it's thefbnic_tlv_attr_parse(9)manual page saying bye 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