qed_chain_alloc(9)
π qed_chain_alloc(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're being official today π
β and today's main character is qed_chain_alloc. Buckle up.
β¨ NAME β¨
qed_chain_alloc β literally allocates and initializes a chain. that's the whole vibe. allocate + init, one function, iconic behavior π
π¦ SYNOPSIS π¦
int qed_chain_alloc (struct qed_dev *cdev , struct qed_chain *chain ,
struct qed_chain_init_params *params );
like yes, it returns an int. yes, there are three arguments. yes, you're gonna read all of them below, no skipping π
πΈ ARGUMENTS πΈ
cdevβ the main device structure. the big boss. the main character energy of the whole thing πchainβ the chain to be processed. this is the one getting the glow-up πparamsβ the chain initialization parameters. all the settings, all the details, all the how-to π«Ά
β RETURN β
0 on success π β and a negative errno otherwise π. so like, check your return value, bestie, fr fr.
ngl if you get a negative errno back, the chain did not slay. handle it.
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ethernet/qlogic/qed/qed_chain.cβ go read it, it's right there, iykyk π qed_chain_free(9)β the cleanup bestie. you allocate, you free. periodt. π
and that's the page! big mwah to ./drivers/net/ethernet/qlogic/qed for being the source/version, dated October 2026 ποΈπ β that's a wrap, bestie, go forth and allocate responsibly π§β¨
π¦ 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