diff options
Diffstat (limited to 'include/pci.h')
-rw-r--r-- | include/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h index dcd354a..8169fe6 100644 --- a/include/pci.h +++ b/include/pci.h @@ -390,6 +390,11 @@ static inline void phb_lock(struct phb *phb) lock(&phb->lock); } +static inline bool phb_try_lock(struct phb *phb) +{ + return try_lock(&phb->lock); +} + static inline void phb_unlock(struct phb *phb) { unlock(&phb->lock); |