<!-- Generated by tools/generate_docs.py. Do not edit. -->

# `MC_knlDefTimer`

Initialize a timer object with its callback.

## Prototype

```c
void MC_knlDefTimer(MCTimer *tm, TIMERCB cb);
```

### void MC_knlDefTimer(MCTimer \*tm, TIMERCB cb)

Initialize a timer object with its callback. 

**Ownership**
: The caller retains the timer storage and must keep it valid while scheduled. 

**API level**
: WIPI-C 1.2.1, ordinal 144. 

**Documentation status**
: reviewed. 

* **Parameters:**
  * **tm** – Caller-owned timer storage. 
  * **cb** – Callback invoked when a scheduled timer expires. 

## Catalog identity

| Field                | Value                                                   |
|----------------------|---------------------------------------------------------|
| API level            | `1.2.1`                                                 |
| Family               | [`MC_KNL`](https://mirusu400.github.io/libwipi/latest/generated/api/1.2.1/families/kernel.md) |
| Ordinal              | 144                                                     |
| Documentation        | `reviewed`                                              |
| Implementation class | `table`                                                 |
| ABI class            | `word-tail`                                             |

## Usage

### Parameters

| Name   | Meaning                                          |
|--------|--------------------------------------------------|
| `tm`   | Caller-owned timer storage.                      |
| `cb`   | Callback invoked when a scheduled timer expires. |

### Ownership

The caller retains the timer storage and must keep it valid while scheduled.

## Profile availability

API membership, device ABI, and install profile are independent. The rows below
describe libwipi implementation evidence, not platform-wide WIPI requirements.

| ABI profile                 | Install profile        | Current evidence                                  |
|-----------------------------|------------------------|---------------------------------------------------|
| `host-sim`                  | `none`                 | headers only                                      |
| `ktf-samsung`               | `none`                 | linkable generated veneer                         |
| `ktf-samsung`               | `aram-ktf`             | linkable generated veneer                         |
| `ktf-samsung`               | `sch-w8300-qpst-probe` | linkable generated veneer; named-device candidate |
| `lgt-raptor`                | `aram-raptor`          | observed in the scoped emulator suite             |
| `lgt-raptor`                | `aram-wie-raptor`      | observed in the scoped emulator suite             |
| `skt-samsung-sch-w830-dl21` | `none`                 | linkable exact-device fixed-root veneer           |

## Compiled examples

- [Conformance](https://mirusu400.github.io/libwipi/latest/generated/examples/conformance.md)
- [SCH-W8300 QPST handset probe](https://mirusu400.github.io/libwipi/latest/generated/examples/handset-probe.md)
- [Sky Hopper](https://mirusu400.github.io/libwipi/latest/generated/examples/platformer.md)
- [System Services](https://mirusu400.github.io/libwipi/latest/generated/examples/system-services.md)

## Evidence boundary

Samsung/KTF selector confidence: `confirmed`. Catalog evidence: `anycall_magichole:analysis/decompiled/wipi_mc_knl_spec_adapter.c:1146`.
