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
timer.h File Reference

System timer interface. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

System timer interface.

Declares the kernel-facing API for configuring the periodic tick and registering its interrupt handler. Implementations dispatch to the platform-specific timer driver underneath.

Author
Abhin Parekadan Jose
Date
2026-06-28

Function Documentation

◆ setup_sys_timer()

bool setup_sys_timer ( const void *  fdt,
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.
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.