NeKernel dev
Loading...
Searching...
No Matches
dev.h File Reference
#include <DriverKit/ddk.h>

Go to the source code of this file.

Classes

struct  DDK_FINAL
 Object handle manifest. More...

Macros

#define DDK_DEVICE_NAME_LEN   (255)
#define kopen   kopen_dev
#define kclose   kclose_dev

Typedefs

typedef struct _DDK_DEVICE DDK_FINAL DDK_DEVICE
 Kernel Device driver.
typedef struct _DDK_DEVICE DDK_FINALDDK_DEVICE_PTR

Functions

DDK_EXTERN DDK_DEVICE_PTR kopen_dev (const char *path)
 Open a new device from path.
DDK_EXTERN BOOL kclose_dev (DDK_DEVICE_PTR device)
 Close any device.

Macro Definition Documentation

◆ DDK_DEVICE_NAME_LEN

#define DDK_DEVICE_NAME_LEN   (255)

◆ kclose

#define kclose   kclose_dev

◆ kopen

#define kopen   kopen_dev

Typedef Documentation

◆ DDK_DEVICE

typedef struct _DDK_DEVICE DDK_FINAL DDK_DEVICE

Kernel Device driver.

◆ DDK_DEVICE_PTR

typedef struct _DDK_DEVICE DDK_FINAL * DDK_DEVICE_PTR

Function Documentation

◆ kclose_dev()

DDK_EXTERN BOOL kclose_dev ( DDK_DEVICE_PTR device)

Close any device.

Parameters
devicevalid device.

◆ kopen_dev()

DDK_EXTERN DDK_DEVICE_PTR kopen_dev ( const char * devicePath)

Open a new device from path.

Parameters
paththe device's path.

Open a new device from path.