spinlock.h File Reference

#include <ubixos/types.h>

Go to the source code of this file.

Defines

#define SPIN_LOCK_INITIALIZER   0

Typedefs

typedef volatile int spinLock_t

Functions

void spinLock (spinLock_t *)
void spinLock_scheduler (spinLock_t *)
void spinLockInit (spinLock_t *)
int spinLockLocked (spinLock_t *)
int spinTryLock (spinLock_t *)
void spinUnlock (spinLock_t *)

Variables

spinLock_t Master


Define Documentation

#define SPIN_LOCK_INITIALIZER   0

Definition at line 35 of file spinlock.h.

Referenced by spinLockInit().


Typedef Documentation

typedef volatile int spinLock_t

Definition at line 37 of file spinlock.h.


Function Documentation

void spinLock ( spinLock_t  ) 

Definition at line 56 of file spinlock.c.

References sched_yield(), and spinTryLock().

Referenced by __sysctl(), adjustCowCounter(), cpuInfo(), current_thread(), devfs_makeNode(), devfs_open(), device_add(), device_find(), device_remove(), fclose(), fdcRead(), fopen(), freePage(), getEmptyDesc(), kernel_function(), kfree(), kmalloc(), mpi_createMbox(), mpi_destroyMbox(), mpi_fetchMessage(), mpi_postMessage(), mpi_spam(), ne2kAllocBuffer(), schedNewTask(), smpInit(), sys_thread_new(), tty_print(), ubixfs_cacheAdd(), ubixfs_cacheFind(), vmm_getFreeMallocPage(), vmm_pageFault(), vmm_remapPage(), vmmCopyVirtualSpace(), vmmFindFreePage(), vmmFreeProcessPages(), vmmGetFreeKernelPage(), vmmGetFreePage(), and vmmGetFreeVirtualPage().

void spinLock_scheduler ( spinLock_t  ) 

Definition at line 64 of file spinlock.c.

References spinTryLock().

void spinLockInit ( spinLock_t  ) 

Definition at line 33 of file spinlock.c.

References SPIN_LOCK_INITIALIZER.

int spinLockLocked ( spinLock_t  ) 

Definition at line 70 of file spinlock.c.

Referenced by c_ap_boot().

int spinTryLock ( spinLock_t  ) 

Definition at line 48 of file spinlock.c.

Referenced by keyboardHandler(), sched(), spinLock(), and spinLock_scheduler().

void spinUnlock ( spinLock_t  ) 

Definition at line 37 of file spinlock.c.

Referenced by __sysctl(), adjustCowCounter(), cpuInfo(), current_thread(), devfs_makeNode(), devfs_open(), device_add(), device_find(), device_remove(), fclose(), fdcRead(), fopen(), freePage(), getEmptyDesc(), kernel_function(), keyboardHandler(), kfree(), kmalloc(), mpi_createMbox(), mpi_destroyMbox(), mpi_fetchMessage(), mpi_postMessage(), mpi_spam(), ne2kAllocBuffer(), schedNewTask(), smpInit(), sys_thread_new(), tty_print(), ubixfs_cacheAdd(), ubixfs_cacheFind(), vmm_getFreeMallocPage(), vmm_pageFault(), vmm_remapPage(), vmmCopyVirtualSpace(), vmmFindFreePage(), vmmFreeProcessPages(), vmmGetFreeKernelPage(), vmmGetFreePage(), and vmmGetFreeVirtualPage().


Variable Documentation

spinLock_t Master

Definition at line 39 of file syscall_new.c.

Referenced by __sysctl().


Generated on Sun Dec 3 02:38:07 2006 for UbixOS V2 by  doxygen 1.4.7