Linux内核写入数据到文件,将数组序列化到文件
内核已经提供了相应函数。实例如下:#include <linux/module.h>#include <linux/init.h>#include <linux/fs.h>#include <linux/uaccess.h>static char buf[] ="hello.
";static char buf1[100]; int __init hello_init(void){ struct file *fp; lof
";static char buf1[100]; int __init hello_init(void){ struct file *fp; lof






