of_hwspin_lock_simple_xlate(9)
β¨ of_hwspin_lock_simple_xlate β¨
okay bestie, so we're deep in the kernel of_hwspin_lock_simple_xlate(9) page today β it's a Kernel API Manual entry, and honestly? it's a tiny little icon that does exactly one thing and does it slay π
πΈ NAME πΈ
of_hwspin_lock_simple_xlate β translate hwlock_spec to return a lock id π
π¦ SYNOPSIS π¦
int of_hwspin_lock_simple_xlate (const struct of_phandle_args
*hwlock_spec );
π ARGUMENTS π
hwlock_specβ the hwlock specifier, fr fr as found in the device tree π³
β DESCRIPTION β
okay so this one is literally The Simple Translation Functionβ’ β it's designed for hwspinlock platform drivers where the lock specifier length is just 1. that's it. that's the vibe. lowkey minimal, highkey essential π
it's the kind of function that doesn't need a whole personality β it just needs to show up and translate. main character energy in a one-line way π«Ά
π RETURN π
on success you get a relative index of the lock within a specified bank β¨ β and if the specifier cell count is invalid, it's -EINVAL, no cap π
π§ SEE ALSO π§
kernel file ./drivers/hwspinlock/hwspinlock_core.c, plus the whole friend group:
__hwspin_trylock(9)__hwspin_lock_timeout(9)__hwspin_unlock(9)hwspin_lock_bust(9)of_hwspin_lock_get_id(9)of_hwspin_lock_get_id_byname(9)hwspin_lock_register(9)hwspin_lock_unregister(9)devm_hwspin_lock_unregister(9)devm_hwspin_lock_register(9)__hwspin_lock_request(9)hwspin_lock_request_specific(9)hwspin_lock_free(9)devm_hwspin_lock_free(9)devm_hwspin_lock_request_specific(9)
π‘ reminder bestie: -EINVAL is the "invalid specifier cell count" error β if you're seeing it, check that cell count π
and that's the whole page, periodt π this lil manpage lives in ./drivers/hwspinlock, dated October 2026, and it's filed under of_hwspin_lock_simple_xlate(9) β go off, queen ππ
π¦ 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