Skip to content

Commit

Permalink
Derive device name from PROVIDER_NAME
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Apr 26, 2024
1 parent 9595e76 commit 45ebb8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/ebpf_ext/ebpf_ext_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
#include <wdf.h>
#pragma warning(pop)

#define EBPF_EXT_DEVICE_NAME L"\\Device\\EbpfExt"
#define CONCATENATE_STRING(x, y) x##y

#define EBPF_EXT_DEVICE_NAME_TEMPLATE(PROVIDER_NAME) L"\\device\\ebpf_ext_" L#PROVIDER_NAME

#define EBPF_EXT_DEVICE_NAME EBPF_EXT_DEVICE_NAME_TEMPLATE(PROVIDER_NAME)

// Driver global variables
static WDFDEVICE _ebpf_ext_device = NULL;
Expand Down

0 comments on commit 45ebb8c

Please sign in to comment.