驱动 errno-base.h 中的返回值

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H

#define	EPERM		 1	/* Operation not permitted 错误操作*/ 
#define	ENOENT		 2	/* No such file or directory 无此文件或目录*/ 
#define	ESRCH		 3	/* No such process 无此进程*/
#define	EINTR		 4	/* Interrupted system call 系统调用中断*/
#define	EIO		     5	/* I/O error I/O错误*/
#define	ENXIO		 6	/* No such device or address 无此设备或地址*/
#define	E2BIG		 7	/* Argument list too long 参数列表过长*/
#define	ENOEXEC		 8	/* Exec format error 执行格式错误*/
#define	EBADF		 9	/* Bad file number 错误的文件编号*/
#define	ECHILD		10	/* No child processes 没有子进程*/
#define	EAGAIN		11	/* Try again 重试*/
#define	ENOMEM		12	/* Out of memory 内存不足*/
#define	EACCES		13	/* Permission denied 没有权限*/
#define	EFAULT		14	/* Bad address 错误的地址*/
#define	ENOTBLK		15	/* Block device required 需要块设备*/
#define	EBUSY		16	/* Device or resource busy 设备或资源忙*/
#define	EEXIST		17	/* File exists 文件是否已存在*/
#define	EXDEV		18	/* Cross-device link 跨设备的链接*/
#define	ENODEV		19	/* No such device 无此驱动*/
#define	ENOTDIR		20	/* Not a directory 不是目录*/
#define	EISDIR		21	/* Is a directory 这是个目录*/
#define	EINVAL		22	/* Invalid argument 无效参数*/
#define	ENFILE		23	/* File table overflow 文件表溢出*/
#define	EMFILE		24	/* Too many open files 打开的文件过多*/
#define	ENOTTY		25	/* Not a typewriter 不是终端*/
#define	ETXTBSY		26	/* Text file busy 文本文件忙*/
#define	EFBIG		27	/* File too large 文件过大*/
#define	ENOSPC		28	/* No space left on device 设备上没有剩余空间*/
#define	ESPIPE		29	/* Illegal seek 非法的seek寻求*/
#define	EROFS		30	/* Read-only file system 只读文件系统*/
#define	EMLINK		31	/* Too many links 链接过多*/
#define	EPIPE		32	/* Broken pipe 管道破裂*/
#define	EDOM		33	/* Math argument out of domain of func 数学参数超出函数域*/
#define	ERANGE		34	/* Math result not representable 数学结果不可表示*/

#endif

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值