eeh_pe_bus_get_nolock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… eeh_pe_bus_get_nolock β€” the Kernel API Manual files

okay so bestie, welcome to the Kernel API Manual, and today's main character is eeh_pe_bus_get_nolock πŸŽ€ she's a little helper from the PowerPC EEH world and honestly she's giving "I do one thing and I do it without a lock" energy.


✨ NAME ✨

eeh_pe_bus_get_nolock β€” Retrieve PCI bus associated with the given EEH PE without locking πŸ¦‹

like yes, that's literally the whole vibe: you hand her a PE, she hands you back a bus, and she does not take the lock. no cap.


🌸 SYNOPSIS 🌸

struct pci_bus * eeh_pe_bus_get_nolock (struct eeh_pe *pe );

look at her. one argument. zero drama (lock-wise, anyway πŸ’€).


πŸ’– ARGUMENTS πŸ’–

  • pe β€” Pointer to the EEH PE πŸ’« that's the PE you're asking about, bestie. that's it, that's the whole input.

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• this function is a variant of _eeh_pe_bus_get, and what she does is retrieve the PCI bus associated with the specified EEH PE β€” but without acquiring the pci_lock_rescan_remove lock. not me skipping the lock 😭 (deliberately, though!!).

because of that, you should only use her when the caller can guarantee safe access to PE structures without needing that lock β€” typically in contexts where the lock is already held or where locking is otherwise managed 🫢. like, she's not out here being reckless, you are, if you call her wrong. iykyk.


πŸ¦‹ RETURN πŸ¦‹

she returns a pointer to the PCI bus associated with the EEH PE, or NULL if none is found 🌈. simple. iconic. periodt.


πŸ’€ NOTE πŸ’€

use this function carefully to avoid race conditions and data corruption πŸ™ˆπŸ”₯ like fr fr, the no-lock life is cute until it isn't.

🧚 SEE ALSO 🧚

Kernel file ./arch/powerpc/kernel/eeh_pe.c β€” and the whole friend group πŸ’œ:


kisses and good vibes from ./arch/powerpc/kernel β€” this little page is dated October 2026, and it's eeh_pe_bus_get_nolock(9) signing off πŸ’…βœ¨πŸŽ€ stay locked (when you should be) bestie 🫢

πŸ“¦ where this page comes from