summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_slist.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-07-27 04:01:18 -0400
committermidipix <writeonce@midipix.org>2015-07-27 04:01:18 -0400
commitdd89bb8ad4fe184a34b5dbdda237e640fc82121b (patch)
tree5e80d2da35f5892f92be29f57982b2708e6bd99b /include/ntapi/nt_slist.h
parentdcdadc2702712fa750ed255ed1dfa354522797a0 (diff)
downloadntapi-dd89bb8ad4fe184a34b5dbdda237e640fc82121b.tar.bz2
ntapi-dd89bb8ad4fe184a34b5dbdda237e640fc82121b.tar.xz
entered advanced internal development stage.
Diffstat (limited to 'include/ntapi/nt_slist.h')
-rw-r--r--include/ntapi/nt_slist.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/ntapi/nt_slist.h b/include/ntapi/nt_slist.h
new file mode 100644
index 0000000..edb5a0f
--- /dev/null
+++ b/include/ntapi/nt_slist.h
@@ -0,0 +1,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