blob: c2b26354226e141ff0ef958778daf2026f9cd654 [file] [log] [blame]
Brian Silverman14fd0fb2014-01-14 21:42:01 -08001#ifndef AOS_LINUX_CODE_INIT_H_
2#define AOS_LINUX_CODE_INIT_H_
brians343bc112013-02-10 01:53:46 +00003
4namespace aos {
5
6// Does the non-realtime parts of the initialization process.
7void InitNRT();
8// Initializes everything, including the realtime stuff.
Brian Silvermanf3cfbd72013-10-28 16:26:09 -07009// relative_priority adjusts the priority of this process relative to all of the
10// other ones (positive for higher priority).
11void Init(int relative_priority = 0);
brians343bc112013-02-10 01:53:46 +000012// Same as InitNRT, except will remove an existing shared memory file and create
13// a new one.
14void InitCreate();
15// Cleans up (probably not going to get called very often because few things can
16// exit gracefully).
17void Cleanup();
18
Brian Silvermanfe1ef172014-04-12 17:12:45 -070019// Sets up this process to write core dump files.
20// This is called by Init*.
21void WriteCoreDumps();
22
brians343bc112013-02-10 01:53:46 +000023} // namespace aos
24
Brian Silverman14fd0fb2014-01-14 21:42:01 -080025#endif // AOS_LINUX_CODE_INIT_H_