NetBSD/sys/netsmb/smb_lock.h
deberg 3694227079 initial stab at SMB stack, needed for smbfs. originally for freebsd by
boris popov, first ported to 1.4 branch by Christian Limpach
<chris@nice.ch>.
2000-12-07 03:48:09 +00:00

21 lines
514 B
C

/* $NetBSD: smb_lock.h,v 1.1 2000/12/07 03:48:10 deberg Exp $ */
#ifndef _NETSMB_SMB_LOCK_H_
#define _NETSMB_SMB_LOCK_H_
/*
* Temporary, until the real SMP stuff appears...
*/
struct simplespinlock {
struct simplelock sl_interlock;
char * sl_name;
int sl_prio;
int sl_count;
};
int simple_spinlock_init(struct simplespinlock *slp, char *name, int prio);
int simple_spinlock(struct simplespinlock *slp, int intr);
void simple_spinunlock(struct simplespinlock *slp);
#endif /* !_NETSMB_SMB_LOCK_H_ */