Skip to content

Commit 8c55c99

Browse files
committed
Change to custom Pool Tags
See: https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/from-sample-code-to-production-driver Should not keep using the same ones from the sample driver. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 4b87063 commit 8c55c99

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

FrameworkSensors/AccelerometerClient.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "AccelerometerClient.tmh"
1515

16-
#define SENSORV2_POOL_TAG_ACCELEROMETER '2CaL'
16+
#define FWK_SENSORS_POOL_TAG_ACCELEROMETER 'ccAF'
1717

1818
#define AccelerometerDevice_Default_MinDataInterval (4)
1919
#define AccelerometerDevice_Default_Axis_Threshold (1.0f)
@@ -111,7 +111,7 @@ AccelerometerDevice::Initialize(
111111
MemoryAttributes.ParentObject = SensorInstance;
112112
Status = WdfMemoryCreate(&MemoryAttributes,
113113
PagedPool,
114-
SENSORV2_POOL_TAG_ACCELEROMETER,
114+
FWK_SENSORS_POOL_TAG_ACCELEROMETER,
115115
Size,
116116
&MemoryHandle,
117117
(PVOID*)&m_pEnumerationProperties);
@@ -163,7 +163,7 @@ AccelerometerDevice::Initialize(
163163
MemoryAttributes.ParentObject = SensorInstance;
164164
Status = WdfMemoryCreate(&MemoryAttributes,
165165
PagedPool,
166-
SENSORV2_POOL_TAG_ACCELEROMETER,
166+
FWK_SENSORS_POOL_TAG_ACCELEROMETER,
167167
Size,
168168
&MemoryHandle,
169169
(PVOID*)&m_pSupportedDataFields);
@@ -197,7 +197,7 @@ AccelerometerDevice::Initialize(
197197
MemoryAttributes.ParentObject = SensorInstance;
198198
Status = WdfMemoryCreate(&MemoryAttributes,
199199
PagedPool,
200-
SENSORV2_POOL_TAG_ACCELEROMETER,
200+
FWK_SENSORS_POOL_TAG_ACCELEROMETER,
201201
Size,
202202
&MemoryHandle,
203203
(PVOID*)&m_pData);
@@ -252,7 +252,7 @@ AccelerometerDevice::Initialize(
252252
MemoryAttributes.ParentObject = SensorInstance;
253253
Status = WdfMemoryCreate(&MemoryAttributes,
254254
PagedPool,
255-
SENSORV2_POOL_TAG_ACCELEROMETER,
255+
FWK_SENSORS_POOL_TAG_ACCELEROMETER,
256256
Size,
257257
&MemoryHandle,
258258
(PVOID*)&m_pProperties);
@@ -295,7 +295,7 @@ AccelerometerDevice::Initialize(
295295
MemoryAttributes.ParentObject = SensorInstance;
296296
Status = WdfMemoryCreate(&MemoryAttributes,
297297
PagedPool,
298-
SENSORV2_POOL_TAG_ACCELEROMETER,
298+
FWK_SENSORS_POOL_TAG_ACCELEROMETER,
299299
Size,
300300
&MemoryHandle,
301301
(PVOID*)&m_pDataFieldProperties);
@@ -335,7 +335,7 @@ AccelerometerDevice::Initialize(
335335
MemoryAttributes.ParentObject = SensorInstance;
336336
Status = WdfMemoryCreate(&MemoryAttributes,
337337
PagedPool,
338-
SENSORV2_POOL_TAG_ACCELEROMETER,
338+
FWK_SENSORS_POOL_TAG_ACCELEROMETER,
339339
Size,
340340
&MemoryHandle,
341341
(PVOID*)&m_pThresholds);

FrameworkSensors/AlsClient.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "AlsClient.tmh"
1515

16-
#define SENSORV2_POOL_TAG_AMBIENT_LIGHT '2LmA'
16+
#define FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT 'SLAF'
1717

1818
#define Als_Initial_MinDataInterval_Ms (10) // 100Hz
1919
#define Als_Initial_Lux_Threshold_Pct (1.0f) // Percent threshold: 100%
@@ -148,7 +148,7 @@ AlsDevice::Initialize(
148148
MemoryAttributes.ParentObject = SensorInstance;
149149
Status = WdfMemoryCreate(&MemoryAttributes,
150150
PagedPool,
151-
SENSORV2_POOL_TAG_AMBIENT_LIGHT,
151+
FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT,
152152
Size,
153153
&MemoryHandle,
154154
(PVOID*)&m_pEnumerationProperties);
@@ -208,7 +208,7 @@ AlsDevice::Initialize(
208208
MemoryAttributes.ParentObject = SensorInstance;
209209
Status = WdfMemoryCreate(&MemoryAttributes,
210210
PagedPool,
211-
SENSORV2_POOL_TAG_AMBIENT_LIGHT,
211+
FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT,
212212
Size,
213213
&MemoryHandle,
214214
(PVOID*)&m_pSupportedDataFields);
@@ -243,7 +243,7 @@ AlsDevice::Initialize(
243243
MemoryAttributes.ParentObject = SensorInstance;
244244
Status = WdfMemoryCreate(&MemoryAttributes,
245245
PagedPool,
246-
SENSORV2_POOL_TAG_AMBIENT_LIGHT,
246+
FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT,
247247
Size,
248248
&MemoryHandle,
249249
(PVOID*)&m_pData);
@@ -305,7 +305,7 @@ AlsDevice::Initialize(
305305
MemoryAttributes.ParentObject = SensorInstance;
306306
Status = WdfMemoryCreate(&MemoryAttributes,
307307
PagedPool,
308-
SENSORV2_POOL_TAG_AMBIENT_LIGHT,
308+
FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT,
309309
Size,
310310
&MemoryHandle,
311311
(PVOID*)&m_pProperties);
@@ -373,7 +373,7 @@ AlsDevice::Initialize(
373373
MemoryAttributes.ParentObject = SensorInstance;
374374
Status = WdfMemoryCreate(&MemoryAttributes,
375375
PagedPool,
376-
SENSORV2_POOL_TAG_AMBIENT_LIGHT,
376+
FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT,
377377
Size,
378378
&MemoryHandle,
379379
(PVOID*)&m_pDataFieldProperties);
@@ -412,7 +412,7 @@ AlsDevice::Initialize(
412412
MemoryAttributes.ParentObject = SensorInstance;
413413
Status = WdfMemoryCreate(&MemoryAttributes,
414414
PagedPool,
415-
SENSORV2_POOL_TAG_AMBIENT_LIGHT,
415+
FWK_SENSORS_POOL_TAG_AMBIENT_LIGHT,
416416
Size,
417417
&MemoryHandle,
418418
(PVOID*)&m_pThresholds);

FrameworkSensors/SimpleDeviceOrientationClient.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include "SimpleDeviceOrientationClient.tmh"
1414

15-
#define SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER 'sodS'
15+
#define FWK_SENSORS_POOL_TAG_ORIENTATION 'irOF'
1616

1717
#define SimpleDeviceOrientationDevice_Default_MinDataInterval (4)
1818
#define SimpleDeviceOrientationDevice_Default_Axis_Threshold (1.0f)
@@ -108,7 +108,7 @@ SimpleDeviceOrientationDevice::Initialize(
108108
MemoryAttributes.ParentObject = SensorInstance;
109109
Status = WdfMemoryCreate(&MemoryAttributes,
110110
PagedPool,
111-
SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER,
111+
FWK_SENSORS_POOL_TAG_ORIENTATION,
112112
Size,
113113
&MemoryHandle,
114114
(PVOID*)&m_pEnumerationProperties);
@@ -160,7 +160,7 @@ SimpleDeviceOrientationDevice::Initialize(
160160
MemoryAttributes.ParentObject = SensorInstance;
161161
Status = WdfMemoryCreate(&MemoryAttributes,
162162
PagedPool,
163-
SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER,
163+
FWK_SENSORS_POOL_TAG_ORIENTATION,
164164
Size,
165165
&MemoryHandle,
166166
(PVOID*)&m_pSupportedDataFields);
@@ -192,7 +192,7 @@ SimpleDeviceOrientationDevice::Initialize(
192192
MemoryAttributes.ParentObject = SensorInstance;
193193
Status = WdfMemoryCreate(&MemoryAttributes,
194194
PagedPool,
195-
SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER,
195+
FWK_SENSORS_POOL_TAG_ORIENTATION,
196196
Size,
197197
&MemoryHandle,
198198
(PVOID*)&m_pData);
@@ -237,7 +237,7 @@ SimpleDeviceOrientationDevice::Initialize(
237237
MemoryAttributes.ParentObject = SensorInstance;
238238
Status = WdfMemoryCreate(&MemoryAttributes,
239239
PagedPool,
240-
SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER,
240+
FWK_SENSORS_POOL_TAG_ORIENTATION,
241241
Size,
242242
&MemoryHandle,
243243
(PVOID*)&m_pProperties);
@@ -280,7 +280,7 @@ SimpleDeviceOrientationDevice::Initialize(
280280
MemoryAttributes.ParentObject = SensorInstance;
281281
Status = WdfMemoryCreate(&MemoryAttributes,
282282
PagedPool,
283-
SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER,
283+
FWK_SENSORS_POOL_TAG_ORIENTATION,
284284
Size,
285285
&MemoryHandle,
286286
(PVOID*)&m_pDataFieldProperties);
@@ -320,7 +320,7 @@ SimpleDeviceOrientationDevice::Initialize(
320320
MemoryAttributes.ParentObject = SensorInstance;
321321
Status = WdfMemoryCreate(&MemoryAttributes,
322322
PagedPool,
323-
SENSORV2_POOL_TAG_LINEAR_ACCELEROMETER,
323+
FWK_SENSORS_POOL_TAG_ORIENTATION,
324324
Size,
325325
&MemoryHandle,
326326
(PVOID*)&m_pThresholds);

0 commit comments

Comments
 (0)