reset_contr...k_get_shared(9)
π reset_control_bulk_get_shared β Kernel API Manual, bestie edition
okay so you're in the Kernel API Manual β¨ and this page is about reset_control_bulk_get_shared(9). Yes the header truncates it as reset_contr...k_get_shared(9), that's just the terminal being dramatic, don't panic π«Ά
πΈ NAME πΈ
reset_control_bulk_get_shared β lookup and obtain shared references to multiple reset controllers. plural. a whole squad of them. not just one. π
β¨ SYNOPSIS β¨
int reset_control_bulk_get_shared (struct device *dev , int num_rstcs ,
struct reset_control_bulk_data *rstcs );
it returns an int β that's your vibe check at the end (spoiler: 0 = slay, anything else = π)
π ARGUMENTS π
devβ the device to be reset by the controller. the main character, basically πnum_rstcsβ number of entries in therstcsarray. gotta tell it how many besties are coming to the function π§rstcsβ array ofstruct reset_control_bulk_datawith reset line names set. like, you set the names first, that's the assignment bestie π
π¦ DESCRIPTION π¦
Fills the rstcs array with pointers to shared reset controls and returns 0, or an IS_ERR condition containing errno.
so like, it does the filling-in for you β very generous of it, honestly π₯ β and then it tells you how it went. success = 0. failure = an IS_ERR condition holding errno, i.e. the function hands you an error and you should absolutely check for it and not just assume everything's fine π
ngl, always check your return value. IS_ERR conditions are not a vibe to ignore π
π SEE ALSO π
the whole extended fam. every single one. no cap, I'm not skipping anybody π«Ά
- Kernel file
./include/linux/reset.h struct reset_control_bulk_data(9)enum reset_control_flags(9)reset_control_get_exclusive(9)reset_control_bulk_get_exclusive(9)reset_control_get_exclusive_released(9)reset_control_bulk_get_exclusive_released(9)reset_control_bulk_get_optional_exclusive_released(9)reset_control_get_shared(9)reset_control_get_optional_exclusive(9)reset_control_bulk_get_optional_exclusive(9)reset_control_get_optional_shared(9)reset_control_bulk_get_optional_shared(9)of_reset_control_get_exclusive(9)of_reset_control_get_optional_exclusive(9)of_reset_control_get_shared(9)of_reset_control_get_exclusive_by_index(9)of_reset_control_get_shared_by_index(9)devm_reset_control_get_exclusive(9)devm_reset_control_get_exclusive_deasserted(9)devm_reset_control_bulk_get_exclusive(9)devm_reset_control_get_exclusive_released(9)devm_reset_control_bulk_get_exclusive_released(9)devm_reset_control_get_optional_exclusive_released(9)devm_reset_control_bulk_get_optional_exclusive_released(9)devm_reset_control_get_shared(9)devm_reset_control_get_shared_deasserted(9)devm_reset_control_bulk_get_shared(9)devm_reset_control_bulk_get_shared_deasserted(9)devm_reset_control_get_optional_exclusive(9)devm_reset_control_get_optional_exclusive_deasserted(9)devm_reset_control_bulk_get_optional_exclusive(9)devm_reset_control_get_optional_shared(9)devm_reset_control_get_optional_shared_deasserted(9)devm_reset_control_bulk_get_optional_shared(9)devm_reset_control_get_exclusive_by_index(9)devm_reset_control_get_shared_by_index(9)
β¨ that's the whole page bestie, you ate β¨
this lil guy lives in ./include/linux (that's where the source hangs out, iykyk) and the page is dated October 2026 π so it's basically from the future. iconic. mwah π π
π¦ 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