Exemplo n.º 1
0
static int uinput_request_reserve_slot(struct uinput_device *udev,
                                       struct uinput_request *request)
{
    /* Allocate slot. If none are available right away, wait. */
    return wait_event_interruptible(udev->requests_waitq,
                                    uinput_request_alloc_id(udev, request));
}
Exemplo n.º 2
0
static inline int uinput_request_reserve_slot(struct uinput_device *udev, struct uinput_request *request)
{
	
	return wait_event_interruptible(udev->requests_waitq,
					!uinput_request_alloc_id(udev, request));
}