Created attachment 181753 [details] patch adding a CUSE_ERR_NO_DEVICE error code It would be great to have a cuse error code that resolves to ENODEV. This is needed to properly implement the Evdev EVIOCREVOKE ioctl. After EVIOCREVOKE is called all further calls to read/write should return ENODEV (https://github.com/jiixyj/evdevfbsd/blob/master/evdevfbsd.c#L120).
Hi, Please also describe the new error code in: lib/libcuse/cuse.3 Patch looks good! --HPS
And also please bump the CUSE_VERSION macro. --HPS
Ping.
Created attachment 186488 [details] patch adding a CUSE_ERR_NO_DEVICE error code - v2 I have bumped the CUSE_VERSION macro and added CUSE_ERR_NO_DEVICE to the man page.
Looks good. Give me a few days and I'll get it in. --HPS
I have been a bit busy. Will try to get this patch committed.
A commit references this bug: Author: hselasky Date: Thu Oct 5 16:42:02 UTC 2017 New revision: 324320 URL: https://svnweb.freebsd.org/changeset/base/324320 Log: Add support for new cuse(3) error code, CUSE_ERR_NO_DEVICE. This error code is useful when emulating Linux input event devices from userspace. PR: 218626 Submitted by: jan.kokemueller@gmail.com MFC after: 1 week Sponsored by: Mellanox Technologies Changes: head/lib/libcuse/cuse.3 head/sys/fs/cuse/cuse.c head/sys/fs/cuse/cuse_defs.h
Thank you for being patient.
A commit references this bug: Author: hselasky Date: Thu Oct 12 08:27:58 UTC 2017 New revision: 324546 URL: https://svnweb.freebsd.org/changeset/base/324546 Log: MFC r324320: Add support for new cuse(3) error code, CUSE_ERR_NO_DEVICE. This error code is useful when emulating Linux input event devices from userspace. PR: 218626 Submitted by: jan.kokemueller@gmail.com Sponsored by: Mellanox Technologies Changes: _U stable/11/ stable/11/lib/libcuse/cuse.3 stable/11/sys/fs/cuse/cuse.c stable/11/sys/fs/cuse/cuse_defs.h