adf_bank_state_restore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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