adf_bank_state_restore(9)
π adf_bank_state_restore β a Kernel API Manual moment (section 9, bestie)
okay so we're in the Kernel API Manual today, section 9, and the main character is adf_bank_state_restore. it's giving "put the bank back the way it was" energy and honestly? we love a restorative queen π
β¨ NAME β¨
adf_bank_state_restore β restore state of bank-related registers π«Ά
πΈ SYNOPSIS πΈ
int adf_bank_state_restore (struct adf_accel_dev *accel_dev , u32
bank_number , struct adf_bank_state *state );
literally just those three things and it's a wrap β¨
π¦ ARGUMENTS π¦
accel_devβ Pointer to the device structure π (the device we're doing all this for, obviously)bank_numberβ Bank number π’ (which bank, bestie β you gotta say which one)stateβ Pointer to bank state structure π (the whole vibe we're restoring to)
π DESCRIPTION π
so what does it do?? this function attempts to restore the state of a bank by writing the bank CSRs to the values in the state structure π₯ like, it reaches into state, grabs the values, and writes them into the bank CSRs so the bank goes back to how it was. no cap, that's the whole plot.
Returns 0 on success, error code otherwise π so like β 0 means slay, anything else means something went sideways and you get an error code instead. it's giving "check the return value, i'm begging you" π
π SEE ALSO π
- Kernel file
./drivers/crypto/intel/qat/qat_common/adf_bank_state.cπ adf_bank_state_save(9)β the save to this restore's restore, iykyk π
ngl that's the whole page β short, sweet, and fully restored β¨
okay bestie that's the tea π this little gem comes from ./drivers/crypto/intel/qat/qat... dated October 2026, and yes it's still doing the adf_bank_state_restore(9) thing at the bottom, 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