Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: nsos: minor fixes and improvements #73022

Merged
merged 4 commits into from
May 22, 2024

Conversation

mniestroj
Copy link
Member

  • propagate POLLHUP from host's epoll()
  • fix nsos_sendmsg() error code
  • set errno on failed z_reserve_fd()
  • fix ENOMEM return from ZFD_IOCTL_POLL_PREPARE

This flag is set in case socket was closed, so propagate it as well.

Signed-off-by: Marcin Niestroj <[email protected]>
There is a goto statement with conversion using errno_from_nsos_mid(). Use
NSOS_MID_ERRNO instead of ERRNO to return proper error code.

Signed-off-by: Marcin Niestroj <[email protected]>
Just propagate proper error code, which is the negated return value from
z_reserve_fd().

Signed-off-by: Marcin Niestroj <[email protected]>
ioctl() API expects error codes to be returned as negative value directly,
instead of using 'errno'. Fix ZFD_IOCTL_POLL_PREPARE handling to respect
that.

Signed-off-by: Marcin Niestroj <[email protected]>
@dleach02 dleach02 merged commit 7aa8e2f into zephyrproject-rtos:main May 22, 2024
26 checks passed
@mniestroj mniestroj deleted the nsos-minor-improvements branch May 22, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants