PlatformInit Linux

Implements PlatformInit in a Linux specific way.

Summary
PlatformInit LinuxImplements PlatformInit in a Linux specific way.
CopyrightThis program is free software.
Files
C-kern/api/platform/init.hHeader file PlatformInit.
C-kern/platform/Linux/init.cImplementation file PlatformInit Linux.
platform_t
static variables
s_platform_errtimerUsed to simulate an error in platform_t.init_platform.
helper
callmain_platformCalls the main threads main function.
Functions
test

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2013 Jörg Seebohn

Files

C-kern/api/platform/init.h

Header file PlatformInit.

C-kern/platform/Linux/init.c

Implementation file PlatformInit Linux.

platform_t

Summary
static variables
s_platform_errtimerUsed to simulate an error in platform_t.init_platform.
helper
callmain_platformCalls the main threads main function.

static variables

s_platform_errtimer

static test_errortimer_t s_platform_errtimer

Used to simulate an error in platform_t.init_platform.

helper

callmain_platform

static void callmain_platform(void)

Calls the main threads main function.  An error is written to STDERR if the main thread aborts.

Functions

test

Offers platform specific initialization function platform_t.init_platform.
Implements PlatformInit in a Linux specific way.
static test_errortimer_t s_platform_errtimer
Used to simulate an error in platform_t.init_platform.
int init_platform(mainthread_f main_thread,
void *user)
Initialize system context and calls main_thread.
static void callmain_platform(void)
Calls the main threads main function.
Close