mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-15 19:55:53 +00:00
* 0day explit mitigation * Memory corruption prevention * Privilege escalation prevention * Buffer over flow prevention * File System corruption defense * Thread escape prevention This may very well be the most intensive inclusion to BrooklynR. This will not be part of an x86 suite nor it will be released as tool kit. The security core toolkit will remain part of kernel base.
30 lines
646 B
C
30 lines
646 B
C
/*
|
|
* syscore_ops.h - System core operations.
|
|
*
|
|
* Copyright (C) 2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
|
|
*
|
|
* This file is released under the GPLv2.
|
|
*/
|
|
|
|
#ifndef _LINUX_SYSCORE_OPS_H
|
|
#define _LINUX_SYSCORE_OPS_H
|
|
|
|
#include <linux/list.h>
|
|
|
|
struct syscore_ops {
|
|
struct list_head node;
|
|
int (*suspend)(void);
|
|
void (*resume)(void);
|
|
void (*shutdown)(void);
|
|
} __do_const;
|
|
|
|
extern void register_syscore_ops(struct syscore_ops *ops);
|
|
extern void unregister_syscore_ops(struct syscore_ops *ops);
|
|
#ifdef CONFIG_PM_SLEEP
|
|
extern int syscore_suspend(void);
|
|
extern void syscore_resume(void);
|
|
#endif
|
|
extern void syscore_shutdown(void);
|
|
|
|
#endif
|