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

#include "nt_abi.h"
#include "nt_compiler.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