> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QSH Wakelock

**Header:** `utils/inc/qshWakelock.h`

## Structures

### `qshWakelock`

#### Functions

##### `getInstance`

Static function to get instance of qshWakelock with file name.

```cpp theme={null}
qshWakelock * getInstance(const char *lockName)
```

##### `acquire`

Number of wakeup samples pushed to framework.

```cpp theme={null}
int32_t acquire(unsigned int count)
```

##### `release`

Number of wakeup samples processed by framework.

```cpp theme={null}
int32_t release(unsigned int count)
```

## Macros

### `QSH_POWER_WAKE_lOCK_ACQUIRE_INDEX`

```c theme={null}
#define QSH_POWER_WAKE_lOCK_ACQUIRE_INDEX 0
```

### `QSH_POWER_WAKE_lOCK_RELEASE_INDEX`

```c theme={null}
#define QSH_POWER_WAKE_lOCK_RELEASE_INDEX 1
```

## Variables

### `FD_COUNT`

```cpp theme={null}
const int FD_COUNT
```

### `PATHS`

```cpp theme={null}
const char *const PATHS
```
