Lines Matching defs:error
641 * Returns <0 for error codes.
673 /* Exceeding the undo range is an error. */
757 /* Exceeding the undo range is an error. */
784 static inline void wake_up_sem_queue_prepare(struct sem_queue *q, int error,
792 smp_store_release(&q->status, error);
865 int error = perform_atomic_semop(sma, q);
867 if (error > 0)
872 wake_up_sem_queue_prepare(q, error, wake_q);
873 if (error == 0)
960 int error, restart;
972 error = perform_atomic_semop(sma, q);
975 if (error > 0)
980 if (error) {
988 wake_up_sem_queue_prepare(q, error, wake_q);
1910 int nsems, error;
1912 error = get_undo_list(&ulp);
1913 if (error)
1914 return ERR_PTR(error);
1986 int error = -EINVAL;
2010 error = -EFAULT;
2017 error = -EINVAL;
2050 error = PTR_ERR(un);
2061 error = PTR_ERR(sma);
2065 error = -EFBIG;
2071 error = -EACCES;
2077 error = security_sem_semop(&sma->sem_perm, sops, nsops, alter);
2078 if (error) {
2083 error = -EIDRM;
2112 error = perform_atomic_semop(sma, &queue);
2113 if (error == 0) { /* non-blocking succesfull path */
2131 if (error < 0) /* non-blocking error path */
2194 error = READ_ONCE(queue.status);
2195 if (error != -EINTR) {
2210 error = READ_ONCE(queue.status);
2216 if (error != -EINTR)
2223 error = -EAGAIN;
2224 } while (error == -EINTR && !signal_pending(current)); /* spurious */
2234 return error;
2290 int error;
2293 error = get_undo_list(&undo_list);
2294 if (error)
2295 return error;