aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/errno.h
Commit message (Collapse)AuthorAgeFilesLines
* linuxkpi: Define ENOKEY to 126.Jean-Sébastien Pédron2023-01-251-0/+1
| | | | | | | | This is the same error code as Linux. This value is unused on FreeBSD. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38149
* linuxkpi: Define EBADSLT to 57Jean-Sébastien Pédron2023-01-161-0/+1
| | | | | | | | | | | | | This is the same error code as Linux. As emaste@ noted in the review, FreeBSD defines the following errno values in `sys/errno.h`: * 56 is `EISCONN` * 57 is `ENOTCONN` Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D37935
* linuxkpi: errno: Add EHWPOISONEmmanuel Vadot2022-08-081-0/+1
| | | | | | | | | Needed by drm-kmod. Reviewed by: bz, hselasky Obtained from: drm-kmod Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36017
* LinuxKPI: add more errnoBjoern A. Zeeb2022-02-141-0/+3
| | | | | | | | Add ENOMEDIUM, ENOSR, and ELNRNG to linux/errno.h needed by drivers. MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34227
* LinuxKPI: Constantly use _LINUXKPI_ prefix in include guardsVladimir Kondratyev2022-01-101-3/+3
| | | | | | MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
* LinuxKPI: add more linux-specific errnoBjoern A. Zeeb2021-03-241-0/+6
| | | | | | | | | | | | Add ERFKILL and EBADE found in iwlwifi and brcmfmac wireless drivers. While here add a comment above the block of error numbers above 500 to document expectations. Obtained-from: bz_iwlwifi Sponsored-by: The FreeBSD Foundation MFC-after: 2 weeks Reviewed-by: hselasky, emaste Differential Revision: https://reviews.freebsd.org/D29396
* linuxkpi: Add EBADRQC to errno.hEmmanuel Vadot2020-05-131-0/+2
| | | | | | | | | | This is used in the amdgpu driver from Linux 5.2 Sponsored-by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24807 Notes: svn path=/head/; revision=361007
* linuxkpi whitespace cleanupEd Maste2018-03-231-4/+4
| | | | | | | | | Reviewed by: hselasky, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14807 Notes: svn path=/head/; revision=331433
* The Linux error defines should all be positive, else frequently usedHans Petter Selasky2016-05-131-2/+17
| | | | | | | | | | | | error code checks might fail. ERESTART is in the BSD world defined as -1. While at it add more Linux error codes. Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=299641
* Finish process of moving the LinuxKPI module into the default kernel build.Hans Petter Selasky2015-10-291-0/+45
- Move all files related to the LinuxKPI into sys/compat/linuxkpi and its subfolders. - Update sys/conf/files and some Makefiles to use new file locations. - Added description of COMPAT_LINUXKPI to sys/conf/NOTES which in turn adds the LinuxKPI to all LINT builds. - The LinuxKPI can be added to the kernel by setting the COMPAT_LINUXKPI option. The OFED kernel option no longer builds the LinuxKPI into the kernel. This was done to keep the build rules for the LinuxKPI in sys/conf/files simple. - Extend the LinuxKPI module to include support for USB by moving the Linux USB compat from usb.ko to linuxkpi.ko. - Bump the FreeBSD_version. - A universe kernel build has been done. Reviewed by: np @ (cxgb and cxgbe related changes only) Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=290135