qcom_ice_generate_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– qcom_ice_generate_key(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for qcom_ice_generate_key β€” yes it's a real function name and yes it's iconic ✨


🌸 NAME 🌸

qcom_ice_generate_key β€” literally the function that generates a wrapped key for inline encryption πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int qcom_ice_generate_key (struct qcom_ice *ice , u8
lt_key[BLK_CRYPTO_MAX_HW_WRAPPED_KEY_SIZE] );

like, look at that signature. so clean. so main character. πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • ice β€” the ICE driver data, obvs 🧊 (it's the context you're working with, and you will be passing it in)
  • lt_key β€” the output buffer for the long-term wrapped key πŸ—οΈ like, this is where the shiny new wrapped key gets dropped off

✨ DESCRIPTION ✨

So the whole vibe here: it uses HWKM to generate a brand new key, then hands it back to you as a long-term wrapped key. that's it. that's the function. no cap 🫢


πŸ”₯ RETURN πŸ”₯

On success you get the size of the resulting wrapped key (yes, the size, not the key itself, pay attention bestie 😭). On failure? -errno. classic. πŸ’€


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./drivers/soc/qcom/ice.c β€” go read it, iykyk πŸ‘‘

like a little friend group of ICE functions πŸ§šπŸ’œ


okay that's the page!! huge shoutout to ./drivers/soc/qcom, the October 2026 era, and the manpage itself qcom_ice_generate_key(9) β€” slay, ate, periodt πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from