filp_open ()在kernel中可以打开文件,其原形如下: ... O_RDWR | O_CREAT, 0644);; if (IS_ERR(fp)) {; printk("create file error\n");; return -1;; } ...
確定! 回上一頁