Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5666680 commit 2a460faCopy full SHA for 2a460fa
1 file changed
src/lib.rs
@@ -7,7 +7,7 @@ use core::panic::PanicInfo;
7
8
mod allocator;
9
pub mod bindings;
10
-mod c_types;
+pub mod c_types;
11
pub mod chrdev;
12
mod error;
13
pub mod filesystem;
@@ -19,14 +19,12 @@ pub mod user_ptr;
19
pub use crate::error::{Error, KernelResult};
20
pub use crate::types::{CStr, Mode};
21
22
-pub type _InitResult = c_types::c_int;
23
-
24
#[macro_export]
25
macro_rules! kernel_module {
26
($module:ty, $($name:ident : $value:expr),*) => {
27
static mut __MOD: Option<$module> = None;
28
#[no_mangle]
29
- pub extern "C" fn init_module() -> $crate::_InitResult {
+ pub extern "C" fn init_module() -> $crate::c_types::c_int {
30
match <$module as $crate::KernelModule>::init() {
31
Ok(m) => {
32
unsafe {
0 commit comments