Linux filp_open error number definitions
我对
我可以从
在哪里可以找到
您不应在内核模式下使用
This is the helper to open a file from kernelspace if you really have to. But in generally you should not do this, so please move along, nothing to see here..
错误代码定义
内核在内核空间和用户空间使用相同的错误号(errno)。 因此,正如OmnipotentEntity指出的那样,您可以看到
查看
请注意,
1 2 3 4 5 6 | fptr = filp_open(...) if (IS_ERR(fptr)) { printk("%d\ ", PTR_ERR(fptr)); } |