Ignore:
Timestamp:
Apr 26, 2017, 2:29:23 PM (4 years ago)
Author:
alain
Message:

Merge all FS related files in one single vfs directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/spinlock.h

    r1 r11  
    7575 * This blocking function uses a busy waiting strategy to lock a local spinlock.
    7676 * It polls the lock and returns only when the lock has been taken.
    77  * If the irq_state argument is not NULL, all IRQs are disabled and will keep disabled
    78  * until the lock is released. If irq_state is NULL, the IRQs are only disabled
    79  * during the lock acquisition polling loop.
     77 * All IRQs are disabled and will keep disabled until the lock is released.
    8078 * It increments the calling thread local_locks count when the lock has been taken.
    8179 *******************************************************************************************
     
    8886/*******************************************************************************************
    8987 * This function releases a local busy_waiting spinlock.
    90  * It restores the CPU SR state, if required by the restore argument.
     88 * It restores the CPU SR state.
    9189 *******************************************************************************************
    9290 * @ lock       : pointer on spinlock
    93  * @ restore    : restore the CPU SR (from irq_state) if true
    9491 * @ irq_state  : value to be resrored in CPU SR
    9592 ******************************************************************************************/
    9693void spinlock_unlock_busy( spinlock_t * lock,
    97                            bool_t       restore,
    9894                           uint32_t     irq_state );
    9995
     
    115111 * @ returns 0 if success / returns non zero if lock already taken.
    116112 ******************************************************************************************/
    117 uint32_t spinlock_trylock( spinlock_t * lock );
     113error_t spinlock_trylock( spinlock_t * lock );
    118114
    119115/*******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.