The Pedigree Project 0.1
pedigree-syscalls.h
1/*
2 * Copyright (c) 2008-2014, Pedigree Developers
3 *
4 * Please see the CONTRIB file in the root of the source tree for a full
5 * list of contributors.
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#ifndef PEDIGREE_SYSCALLS_H
21#define PEDIGREE_SYSCALLS_H
22#include "pedigree/kernel/processor/types.h"
23
26int pedigree_login(int uid);
27
28int pedigree_reboot();
29
30void pedigree_module_load(char* file);
31int pedigree_module_unload(char* name);
32int pedigree_module_is_loaded(char* name);
33int pedigree_module_get_depending(char* name, char* buf, size_t bufsz);
34
35int pedigree_get_mount(char* mount_buf, char* info_buf, size_t n);
36
37void* pedigree_sys_request_mem(size_t len);
38
39void pedigree_haltfs();
40
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47int pedigree_load_keymap(uint32_t* buffer, size_t len);
48void pedigree_input_inhibit_events(int inhibit);
49
50int pedigree_event_return();
51
52#ifdef __cplusplus
53}; // extern "C"
54#endif
55
56#endif