25 #include <linux/sched.h>
26 #include <linux/slab.h>
75 spin_unlock_irqrestore(&sp->lock, flags);
77 wake_up_event_readers(sp);
101 event_available(buffer, reader) || reader->
cancelled))
104 if (!event_available(buffer, reader))
119 spin_unlock_irqrestore(&sp->
lock, flags);
121 return event->data_size;
138 spin_unlock_irqrestore(&sp->
lock, flags);
147 spin_unlock_irqrestore(&sp->
lock, flags);
167 INIT_LIST_HEAD(&buffer->
readers);