hwrm_req_flags(9)
π hwrm_req_flags(9) β kernel API manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual and it's about hwrm_req_flags(9), a tiny little function that's lowkey the vibe-setter for your HWRM requests β¨ she doesn't send anything herself, she just sets the mood before hwrm_req_send does its thing. main character energy honestly.
β¨ NAME β¨
hwrm_req_flags β set the non-internal flags of the ctx π«Ά
πΈ SYNOPSIS πΈ
void hwrm_req_flags (struct bnxt *bp , void *req , enum
bnxt_hwrm_ctx_flags flags );
like literally that's it, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
bpβ the driver context π iykyk, it's the bnxt thing you're working withreqβ the request that's holding your HWRM command π¦flagsβ the ctx flags that don't haveBNXT_HWRM_INTERNAL_FLAGset π ββοΈ those are not welcome here, bestie
π DESCRIPTION π
so the whole point of ctx flags is that callers use them to tell hwrm_req_send how to behave afterwards β it's giving "instruct the subsequent call" energy π
like, iconic examples:
- callers can hit up
hwrm_req_flagswithBNXT_HWRM_CTX_SILENTto omit kernel prints of errors fromhwrm_req_sendπ€« no drama in the logs, we love a quiet queen - or they can use
BNXT_HWRM_FULL_WAITto enforcehwrm_req_sendwaiting for the full timeout even if the FW is not responding πβ³ she will sit there and wait the whole time, respect
and the cute part? this is a generic function, so you can use it to set any flag that is not an internal flag of the HWRM module β periodt. β¨
π₯ SEE ALSO π₯
kernel file: ./drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c π (go read her, she's the source of truth)
and her whole friend group, fr fr:
__hwrm_req_init(9)hwrm_req_timeout(9)hwrm_req_alloc_flags(9)hwrm_req_replace(9)hwrm_req_hold(9)hwrm_req_drop(9)hwrm_req_send(9)hwrm_req_send_silent(9)hwrm_req_dma_slice(9)
okay that's the whole page, mwah π this came from ./drivers/net/ethernet/broadco... and it's dated October 2026 β go forth and set those flags, bestie, you're gonna slay ππ
π¦ 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