kernel/poll.c
/* must be called with interrupts locked */
must be called with interrupts locked
must be called with interrupts locked
static inline void clear_event_registrations(struct k_poll_event *events,
					      int last_registered,
					      unsigned int key)
{
	for (; last_registered >= 0; last_registered--) {
		clear_event_registration(&events[last_registered]);
		irq_unlock(key);
		key = irq_lock();
	}
}
static inline void clear_event_registrations ( struct k_poll_event * events , int last_registered , unsigned int key ) { for ( ; last_registered >= 0 ; last_registered -- ) { clear_event_registration ( & events [ last_registered ] ) ; irq_unlock ( key ) ; key = irq_lock ( ) ; } }
must be called with interrupts locked
must be called with interrupts locked