Implement kernel handle encoding

This commit is contained in:
2026-07-14 23:04:48 +02:00
parent 68e08d3065
commit f99e919cb7
4 changed files with 105 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#include <xtos.hh>
#include <ob/devmap.hh>
#include <ob/handle.hh>
#include <ob/lifecycl.hh>
#include <ob/obdir.hh>
#include <ob/obmgr.hh>

View File

@@ -0,0 +1,27 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/includes/ob/handle.hh
* DESCRIPTION: Object Manager Handle Management
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
*/
#ifndef __XTOSKRNL_OB_HANDLE_HH
#define __XTOSKRNL_OB_HANDLE_HH
#include <xtos.hh>
/* Object Manager */
namespace OB
{
class Handle
{
public:
STATIC XTFASTCALL HANDLE DecodeKernelHandle(IN HANDLE Handle);
STATIC XTFASTCALL HANDLE EncodeKernelHandle(IN HANDLE Handle);
STATIC XTFASTCALL ULONG GetHandleAttributes(IN PHANDLE_TABLE_ENTRY HandleTableEntry);
};
}
#endif /* __XTOSKRNL_OB_HANDLE_HH */