LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
osal_file_ops.h File Reference

Public low-level file operations API for the osal_file module. More...

#include "osal/file/osal_file_types.h"
#include "osal/mem/osal_mem_ops.h"
#include "policy/lexleo_cstd_types.h"
Include dependency graph for osal_file_ops.h:

Go to the source code of this file.

Data Structures

struct  osal_file_ops
 Operations table for the low-level OSAL file abstraction. More...
 

Typedefs

typedef struct osal_file_ops osal_file_ops_t
 Operations table for the low-level OSAL file abstraction.
 

Functions

const osal_file_ops_tosal_file_default_ops (void)
 Return the default OSAL file operations for the active platform.
 

Detailed Description

This header exposes the OSAL-facing entry points used to:

  • describe the portable low-level file operations table for the active platform,
  • acquire, access, flush, and release OSAL_FILE resources through the osal_file_ops_t contract,
  • retrieve the default operations table provided by the active OSAL file backend.

Definition in file osal_file_ops.h.

Typedef Documentation

◆ osal_file_ops_t

This API defines the low-level file operations exposed by the osal_file module.

It provides a portable file-oriented operations table for the active platform, while keeping higher-level adapter concerns outside of the OSAL.

Low-level file operations for the active OSAL backend.

This structure groups the primitive operations used to acquire, access, flush, and release OSAL_FILE resources through the OS abstraction layer.

These operations are intentionally file-oriented. They do not define a higher-level byte-stream port contract.

Function Documentation

◆ osal_file_default_ops()

const osal_file_ops_t * osal_file_default_ops ( void  )

This function exposes the platform-specific low-level file operations used by the osal_file module.

Returns
A pointer to the default operations table for the active platform.
Note
The returned operations table is not owned by the caller.

Return the default OSAL file operations for the active platform.

Returns
A pointer to the default osal_file_ops_t table for this backend.

Definition at line 401 of file osal_file_posix.c.