Subversion Repositories HelenOS-historic

Rev

Rev 1264 | Rev 1757 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1264 Rev 1502
Line 65... Line 65...
65
 * Semaphore down.
65
 * Semaphore down.
66
 * Conditional mode and mode with timeout can be requested.
66
 * Conditional mode and mode with timeout can be requested.
67
 *
67
 *
68
 * @param s Semaphore.
68
 * @param s Semaphore.
69
 * @param usec Timeout in microseconds.
69
 * @param usec Timeout in microseconds.
70
 * @param trydown Switches between blocking and non-blocking mode.
70
 * @param flags Select mode of operation.
71
 *
71
 *
72
 * For exact description of possible combinations of
72
 * For exact description of possible combinations of
73
 * usec and trydown, see comment for waitq_sleep_timeout().
73
 * usec and flags, see comment for waitq_sleep_timeout().
74
 *
74
 *
75
 * @return See comment for waitq_sleep_timeout().
75
 * @return See comment for waitq_sleep_timeout().
76
 */
76
 */
77
int _semaphore_down_timeout(semaphore_t *s, __u32 usec, int trydown)
77
int _semaphore_down_timeout(semaphore_t *s, __u32 usec, int flags)
78
{
78
{
79
    return waitq_sleep_timeout(&s->wq, usec, trydown);
79
    return waitq_sleep_timeout(&s->wq, usec, flags);
80
}
80
}
81
 
81
 
82
/** Semaphore up
82
/** Semaphore up
83
 *
83
 *
84
 * Semaphore up.
84
 * Semaphore up.