PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
exit_stack.c File Reference
#include "exit_stack.h"
#include <errno.h>
#include <stdint.h>
Include dependency graph for exit_stack.c:

Go to the source code of this file.

Functions

void _exit_stack_init (void)
 
uint64_t _exit_stack_push (void(*func)(void))
 
void _exit_stack_dispatch (void)
 

Variables

static void(* _stack [_EXIT_STACK_SIZE])(void)
 
static uint64_t _length = 0
 

Function Documentation

◆ _exit_stack_init()

void _exit_stack_init ( void  )

Definition at line 9 of file exit_stack.c.

Here is the caller graph for this function:

◆ _exit_stack_push()

uint64_t _exit_stack_push ( void(*)(void)  func)

Definition at line 14 of file exit_stack.c.

◆ _exit_stack_dispatch()

void _exit_stack_dispatch ( void  )

Definition at line 27 of file exit_stack.c.

Here is the caller graph for this function:

Variable Documentation

◆ _stack

void(* _stack[_EXIT_STACK_SIZE])(void) ( void  )
static

Definition at line 6 of file exit_stack.c.

◆ _length

uint64_t _length = 0
static

Definition at line 7 of file exit_stack.c.