I wrote a very simple kernel module doing only helloworld.
-------
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
static int hello_init(void) {
printk(KERN_ALERT "Hello World!!\n");
return 0;
}
static void hello_exit(void) { printk(KERN_ALERT "Goodbye..\n"); }
module_init(hello_init);
module_exit(hello_exit);
-------
I tried to insmod this into my guest ubuntu18.04 on shared directory, which is shared to my host macOS 14,
the process failed with not proper error "insmod: ERROR: could not insert module helloworld.ko: Cannot allocate memory"
I feel I always fail do something very common in shared directory, (this is not the first time, git is also crash)
is there any one who know about it??
-------
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
static int hello_init(void) {
printk(KERN_ALERT "Hello World!!\n");
return 0;
}
static void hello_exit(void) { printk(KERN_ALERT "Goodbye..\n"); }
module_init(hello_init);
module_exit(hello_exit);
-------
I tried to insmod this into my guest ubuntu18.04 on shared directory, which is shared to my host macOS 14,
the process failed with not proper error "insmod: ERROR: could not insert module helloworld.ko: Cannot allocate memory"
I feel I always fail do something very common in shared directory, (this is not the first time, git is also crash)
is there any one who know about it??