adf_cfg_add_key_value_param(9)
π adf_cfg_add_key_value_param(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual β¨ this is the page for adf_cfg_add_key_value_param, and yes it's a mouthful, we're gonna get through it together π«Ά
πΈ NAME πΈ
adf_cfg_add_key_value_param β the function that adds a key-value config entry to the config table. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
int adf_cfg_add_key_value_param (struct adf_accel_dev *accel_dev , const
char *section_name , const char *key , const void *val , enum
adf_cfg_val_type type );
look at her. iconic signature. five args, returns an int, no cap π
π¦ ARGUMENTS π¦
here's the cast of characters, main character energy all around:
accel_devβ pointer to the acceleration device. literally the device you're doing this for πsection_nameβ the name of the section where the param is gonna be added. like picking which folder in the group chat πkeyβ the key string. that's the label, the name tag, the whole identity π₯valβ the value pain for the given key. (yes, "pain" β that's what the page says, we're keeping it, it's giving typo-but-make-it-canon π)typeβ the type: string, int, or address. pick one, be decisive β
π DESCRIPTION π
so what she does: this function adds a configuration key-value entry into the appropriate section of the given acceleration device. super simple, super clean π§
and here's the β¨ twist β¨ β if the key already exists? it doesn't throw a fit, it just updates the value. lowkey flexible of her π
π important bit: this is to be used by QAT device specific drivers. so like, iykyk, this one's for the QAT crowd π
π RETURN π
0on success π- an error code otherwise π
no in-between, she's either slaying or she's not.
π SEE ALSO π
go touch grass in these files and pages:
- Kernel file
./drivers/crypto/intel/qat/qat_common/adf_cfg.cπ adf_cfg_dev_add(9)adf_cfg_dev_remove(9)adf_cfg_section_add(9)
ngl bestie, read the source file too β the manpage is cute but the code is where the lore lives π«Ά
okay that's the page!! mwah π this was brought to you by the kernel source at ./drivers/crypto/intel/qat/qat... and dated October 2026 β yes, october 2026, she's from the future, periodt βπΈπ
π¦ 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