Changeset ace9358 in mainline


Ignore:
Timestamp:
2008-05-12T18:51:05Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
83512f21
Parents:
34b3ce3
Message:

Formatting improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/waitq.c

    r34b3ce3 race9358  
    6161 * Initialize wait queue.
    6262 *
    63  * @param wq Pointer to wait queue to be initialized.
     63 * @param wq            Pointer to wait queue to be initialized.
    6464 */
    6565void waitq_initialize(waitq_t *wq)
     
    7272/** Handle timeout during waitq_sleep_timeout() call
    7373 *
    74  * This routine is called when waitq_sleep_timeout() timeouts.
     74 * This routine is called when waitq_sleep_timeout() times out.
    7575 * Interrupts are disabled.
    7676 *
     
    8080 * timeout at all.
    8181 *
    82  * @param data Pointer to the thread that called waitq_sleep_timeout().
     82 * @param data          Pointer to the thread that called waitq_sleep_timeout().
    8383 */
    8484void waitq_sleep_timed_out(void *data)
     
    124124 * If the thread is not found sleeping, no action is taken.
    125125 *
    126  * @param t Thread to be interrupted.
     126 * @param t             Thread to be interrupted.
    127127 */
    128128void waitq_interrupt_sleep(thread_t *t)
     
    235235 * and interrupts disabled.
    236236 *
    237  * @param wq Wait queue.
    238  *
    239  * @return Interrupt level as it existed on entry to this function.
     237 * @param wq            Wait queue.
     238 *
     239 * @return              Interrupt level as it existed on entry to this function.
    240240 */
    241241ipl_t waitq_sleep_prepare(waitq_t *wq)
     
    273273 * lock is released.
    274274 *
    275  * @param wq Wait queue.
    276  * @param rc Return code of waitq_sleep_timeout_unsafe().
    277  * @param ipl Interrupt level returned by waitq_sleep_prepare().
     275 * @param wq            Wait queue.
     276 * @param rc            Return code of waitq_sleep_timeout_unsafe().
     277 * @param ipl           Interrupt level returned by waitq_sleep_prepare().
    278278 */
    279279void waitq_sleep_finish(waitq_t *wq, int rc, ipl_t ipl)
     
    293293 *
    294294 * This function implements logic of sleeping in a wait queue.
    295  * This call must be preceeded by a call to waitq_sleep_prepare()
    296  * and followed by a call to waitq_slee_finish().
    297  *
    298  * @param wq See waitq_sleep_timeout().
    299  * @param usec See waitq_sleep_timeout().
    300  * @param flags See waitq_sleep_timeout().
    301  *
    302  * @return See waitq_sleep_timeout().
     295 * This call must be preceded by a call to waitq_sleep_prepare()
     296 * and followed by a call to waitq_sleep_finish().
     297 *
     298 * @param wq            See waitq_sleep_timeout().
     299 * @param usec          See waitq_sleep_timeout().
     300 * @param flags         See waitq_sleep_timeout().
     301 *
     302 * @return              See waitq_sleep_timeout().
    303303 */
    304304int waitq_sleep_timeout_unsafe(waitq_t *wq, uint32_t usec, int flags)
     
    385385 * timeout.
    386386 *
    387  * @param wq    Pointer to wait queue.
    388  * @param mode  Wakeup mode.
     387 * @param wq            Pointer to wait queue.
     388 * @param mode          Wakeup mode.
    389389 */
    390390void waitq_wakeup(waitq_t *wq, wakeup_mode_t mode)
     
    406406 * assumes wq->lock is already locked and interrupts are already disabled.
    407407 *
    408  * @param wq    Pointer to wait queue.
    409  * @param mode  If mode is WAKEUP_FIRST, then the longest waiting thread,
    410  *              if any, is woken up. If mode is WAKEUP_ALL, then all
    411  *              waiting threads, if any, are woken up. If there are no
    412  *              waiting threads to be woken up, the missed wakeup is
    413  *              recorded in the wait queue.
     408 * @param wq            Pointer to wait queue.
     409 * @param mode          If mode is WAKEUP_FIRST, then the longest waitingi
     410 *                      thread, if any, is woken up. If mode is WAKEUP_ALL, then
     411 *                      all waiting threads, if any, are woken up. If there are
     412 *                      no waiting threads to be woken up, the missed wakeup is
     413 *                      recorded in the wait queue.
    414414 */
    415415void _waitq_wakeup_unsafe(waitq_t *wq, wakeup_mode_t mode)
Note: See TracChangeset for help on using the changeset viewer.