tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

when can we tsleep() ?



Hi,
this is related to kern/39725. We have cpu_intr_p() which tells us
if we're in interrupt context or not. But there's other cases where
it's not safe to call tsleep (e.g. from soft interrupt context, maybe
others). If there a function or check that can tell us if it's safe
to use tsleep() or not ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index