hns_dsaf_pfc_unit_cnt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hns_dsaf_pfc_unit_cnt β€” set pfc unit count πŸ’…

okay so this is a page from the Kernel API Manual, bestie β€” section 9, kernel API vibes. It's about one tiny little function with a big job, and honestly? She's giving "quiet luxury". Let's get into it 🫢


✨ NAME ✨

hns_dsaf_pfc_unit_cnt β€” set pfc unit count</p> πŸ’–

Like, that's literally it. Set the PFC unit count. Nothing more, nothing less, no cap.


🌸 SYNOPSIS 🌸

void hns_dsaf_pfc_unit_cnt (struct dsaf_device *dsaf_dev , int mac_id ,
enum dsaf_port_rate_mode rate );

so she returns void (no takebacks, no receipts πŸ’€) and she takes three things: a struct dsaf_device *, an int, and an enum dsaf_port_rate_mode. That's the whole meal, and she ate. πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dsaf_dev β€” the dsa fabric id ✨ like, this is your fabric. your whole situation. your DSA identity card, if you will.
  • mac_id β€” the id in use πŸŽ€ which id? the one in use. she's mysterious like that, iykyk.
  • rate β€” a value array ⭐ yep, that's what the original says. a value array. we do not question the value array. we respect the value array. πŸ™ˆ
ngl the descriptions here are short and sweet β€” that's the source material, not me being lazy. i keep every word of it, fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where she name-drops literally everyone at the function party 🌈. Kernel file first:

./drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c

and then the entire group chat:

like, fifty-seven besties. she knows everyone. main character energy for REAL πŸ‘‘πŸ’œ


and that's the whole page, bestie β€” short, sweet, and fully cited. now go forth and count those pfc units ✨

sign-off szn πŸŽ€: this gem comes out of ./drivers/net/ethernet/hisilic... (that's how it's written in the footer, truncated and all, and i'm not about to finish the sentence for it πŸ’…) and the date on the tin is October 2026. catch you in the kernel, mwah πŸ«ΆπŸ’–

πŸ“¦ where this page comes from