Skip to content

Fix poll support for pipes #88743

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

Merged
merged 2 commits into from
Apr 21, 2025
Merged

Fix poll support for pipes #88743

merged 2 commits into from
Apr 21, 2025

Conversation

npitre
Copy link
Collaborator

@npitre npitre commented Apr 17, 2025

  • tests: poll: add pipe coverage
  • kernel/pipe: fix poll support

Fixes #88601

Nicolas Pitre added 2 commits April 17, 2025 00:42
Add pipe test coverage.

Signed-off-by: Nicolas Pitre <[email protected]>
Two issues:

- is_condition_met() was missing proper code for The
  K_POLL_TYPE_PIPE_DATA_AVAILABLE case

- z_handle_obj_poll_events() was misplaced in z_impl_k_pipe_write()

Note: I added support for the deprecated pipe implementation to
      is_condition_met() but that is untested.

Signed-off-by: Nicolas Pitre <[email protected]>
@kartben kartben merged commit f087aa2 into zephyrproject-rtos:main Apr 21, 2025
29 checks passed
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.

k_poll on a pipe does not wait for data to become available
5 participants