UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
spinlock.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "x86.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "spinlock.h"

Go to the source code of this file.


void initlock (struct spinlock *lk, char *name)
void acquire (struct spinlock *lk)
void release (struct spinlock *lk)
void getcallerpcs (void *v, uint pcs[])
int holding (struct spinlock *lock)
void pushcli (void)
void popcli (void)

Function Documentation

void acquire ( struct spinlock lk)

Definition at line 25 of file spinlock.c.

void getcallerpcs ( void *  v,
uint  pcs[] 

Definition at line 68 of file spinlock.c.

int holding ( struct spinlock lock)

Definition at line 86 of file spinlock.c.

void initlock ( struct spinlock lk,
char *  name 

Definition at line 13 of file spinlock.c.

void popcli ( void  )

Definition at line 108 of file spinlock.c.

void pushcli ( void  )

Definition at line 97 of file spinlock.c.

void release ( struct spinlock lk)

Definition at line 44 of file spinlock.c.