nfp_cpp_readq(9)
π nfp_cpp_readq(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel, and you need to pull a whole u64 word out of a CPP location. that's it. that's the whole vibe. this function is the main character of that exact moment β¨
πΈ NAME πΈ
nfp_cpp_readq β literally just read a u64 word from a CPP location. one job. slays it. π
π¦ SYNOPSIS π¦
int nfp_cpp_readq (struct nfp_cpp *cpp , u32 cpp_id , unsigned long long
address , u64 *value );
β¨ ARGUMENTS β¨
cppβ the CPP device handle π«Ά this is your whole ticket in, no handle no entry, periodt.cpp_idβ the CPP ID for the operation π which operation? this operation. be specific bestie.addressβ the address for the operation β yeah she's just the address. iconic of her honestly.valueβ pointer to the read buffer π this is where the word lands when it comes home. it's giving "destination" energy.
π₯ RETURN π₯
0 on success, or -ERRNO π so like... zero means we ate, and anything negative means check your errno, ngl.
no cap, that -ERRNO is doing a lot of heavy lifting there β it's not one specific error, it's the whole errno family. keep that in mind π
π§ SEE ALSO π§
- Kernel file
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.cβ go read the source, the source is the blueprint bestie π nfp_cpp_readl(9)nfp_cpp_writel(9)nfp_cpp_writeq(9)nfp_cpp_map_area(9)
like, if reading a q isn't enough for you, the l version and the write versions and the mapping one are all right there. the whole friend group fr fr π
and that's the page!! π this masterpiece of a manpage came to you courtesy of the source/version line ./drivers/net/ethernet/netrono... and it's stamped October 2026 β so yeah, she's from the future, she's from nfp_cpp_readq(9), and she's perfect. mwah π
β¨
π¦ 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