adf_cfg_add_key_value_param(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸŽ€

  • 0 on 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:


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