summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_slist.h
blob: edb5a0fd22dffbb1bfc3eac6b256bb86803acfaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _NT_SLIST_H_
#define _NT_SLIST_H_

#include <psxtypes/psxtypes.h>
#include "nt_sync.h"

struct nt_slist;
struct nt_slist_node;

struct nt_slist_node {
	struct nt_slist_node *	next;
	uintptr_t		data;
};

struct __attr_aligned__(NT_SYNC_BLOCK_SIZE) nt_slist {
	struct nt_slist_node *	head;
	intptr_t		nitems;
	intptr_t		busy;
	intptr_t		padding[NT_SYNC_BLOCK_SIZE/sizeof(size_t)-3];
};

#endif