uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
threadman_user.h
1/* Copyright (C) 2011, 2012, 2013 The uOFW team
2 See the file COPYING for copying permission.
3*/
4
5#ifndef THREADMAN_USER_H
6#define THREADMAN_USER_H
7
8#include "common_header.h"
9
10/* LwMutex */
11
12enum SceKernelLwMutexTypes {
13 SCE_KERNEL_LWMUTEX_RECURSIVE = 0x200
14};
15
16typedef struct {
17 s32 lockCount; // 0
18 s32 thid; // 4
19 u32 flags; // 8
20 s32 unk3; // 12
21 s32 id; // 16
22} SceLwMutex;
23
24s32 _sceKernelLockLwMutexCB(SceLwMutex *mutex, s32 count);
25s32 _sceKernelLockLwMutex(SceLwMutex *mutex, s32 count);
26s32 _sceKernelUnlockLwMutex(SceLwMutex *mutex, s32 count);
27s32 sceKernelReferLwMutexStatusByID(s32 id, u32 *addr);
28s32 _sceKernelAllocateTlspl(s32, void*, s32);
29
30#endif /* THREADMAN_USER_H */
31