Add MODULE_INIT_ constants
These are flags required to implement the linux kernel loading mechanism. Specifically finit_module.
This commit is contained in:
parent
5ac35c85fe
commit
8bfe10cb45
@ -1458,6 +1458,10 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962;
|
||||
pub const SIOCGIFMAP: ::c_ulong = 0x00008970;
|
||||
pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
|
||||
|
||||
// linux/module.h
|
||||
pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001;
|
||||
pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002;
|
||||
|
||||
// Similarity to Linux it's not used but defined for compatibility.
|
||||
pub const ENOATTR: ::c_int = ::ENODATA;
|
||||
|
||||
|
@ -1498,6 +1498,10 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02;
|
||||
pub const ARPD_FLUSH: ::c_ushort = 0x03;
|
||||
pub const ATF_MAGIC: ::c_int = 0x80;
|
||||
|
||||
// linux/module.h
|
||||
pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001;
|
||||
pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002;
|
||||
|
||||
f! {
|
||||
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
|
||||
for slot in cpuset.bits.iter_mut() {
|
||||
|
Loading…
Reference in New Issue
Block a user