Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
utils.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Macros

#define RO_START   0
 
#define RO_END   0
 

Functions

static bool linker_is_in_rodata (const void *addr)
 Check if address is in read only section.
 

Macro Definition Documentation

◆ RO_END

#define RO_END   0

◆ RO_START

#define RO_START   0

Function Documentation

◆ linker_is_in_rodata()

static bool linker_is_in_rodata ( const void * addr)
inlinestatic

Check if address is in read only section.

Note that this may return false if the address lies outside the compiler's default read only sections (e.g. .rodata section), depending on the linker script used. This also applies to constants with explicit section attributes.

Parameters
addrAddress.
Returns
True if address identified within read only section.