adf_cfg_section_add(9)
π adf_cfg_section_add β NAME π
okay so real talk, this is adf_cfg_section_add(9) from the Kernel API Manual, and what it does is literally add a config section entry to the config table. that's it, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
int adf_cfg_section_add(struct adf_accel_dev *accel_dev, const char *name);
like, it takes two things and gives you back an int, no cap π«Ά
π ARGUMENTS π
accel_devβ pointer to the acceleration device, bestie. it's astruct adf_accel_dev *, so you know exactly what kind of creature you're dealing with πnameβ the name of the section. aconst char *, iconic, protected, not getting mutated on your watch π₯
π¦ DESCRIPTION π¦
so the way that this works is β the function adds a configuration section where the key - value entries are gonna be stored. that's the whole point of it, that's its main character energy π
it's meant to be used by QAT device specific drivers β so like, if that's not you, respectfully, this isn't your function, iykyk π
β RETURN β
0on success π (slay)- an error code otherwise π (not slay, check it fr fr)
π§ SEE ALSO π§
- Kernel file
./drivers/crypto/intel/qat/qat_common/adf_cfg.cβ go read it, it ate π adf_cfg_dev_add(9)adf_cfg_dev_remove(9)adf_cfg_add_key_value_param(9)
all of these are the friend group, they come as a set π«Άβ¨
ngl this one's short but it's giving essential. don't sleep on the return value check, bestie π
sign-off time π this lil masterpiece lives at ./drivers/crypto/intel/qat/qat... in the October 2026 edition of the Kernel API Manual β periodt, that's the tea, luv u, bye ππ¦πΈ
π¦ 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