Kernelite 0.1.0
Kernelite is a minimalist, educational operating system kernel built from scratch. The project aims to recreate core components of the Linux architecture to explore the fundamentals of operating system design and hardware-software interaction.
Loading...
Searching...
No Matches
Functions
arm_timer.h File Reference

ARM generic system timer driver. More...

#include "icu/icu.h"
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for arm_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool setup_arm64_sys_timer (const void *fdt, int node_offset, uint64_t milliseconds, handler_data_t handler)
 Configure the system timer's tick period and interrupt handler.
 

Detailed Description

ARM generic system timer driver.

Declares the platform-specific implementation backing the kernel's timer interface for the ARM generic timer (CNTP).

Author
Abhin Parekadan Jose
Date
2026-06-28

Function Documentation

◆ setup_arm64_sys_timer()

bool setup_arm64_sys_timer ( const void *  fdt,
int  node_offset,
uint64_t  milliseconds,
handler_data_t  handler 
)

Configure the system timer's tick period and interrupt handler.

Parameters
fdtPointer to the Flattened Device Tree (FDT) blob, which may be used to discover timer properties and configuration.
node_offsetOffset of the timer node in the FDT.
millisecondsDesired tick period in milliseconds.
handlerHandler function and private data to invoke when the timer interrupt fires.
Returns
true if the timer was configured successfully, false otherwise.