nuttx/drivers/pipes
yukangzhi bcddaa59a9 drivers/pipe: fix POLLHUP handling in poll()
For POLICY_0, when a pipe only has a reader and no writer,
if the pipe is empty, set POLLHUP.

For POLICY_1, when a pipe only has a reader but no writer,
if the pipe is empty, POLLHUP will not be set.

This change corrects poll() behavior to match the two pipe policies.
No API changes.

Signed-off-by: yukangzhi <yukangzhi@xiaomi.com>
2026-01-22 22:09:01 +08:00
..
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
fifo.c Fix some minor style issues 2024-11-20 10:51:07 +01:00
Kconfig Enable DEV_PIPE_NPOLLWAITERS default value 4 for adapte APP 2024-11-05 20:10:49 +08:00
Make.defs drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pipe.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pipe_common.c drivers/pipe: fix POLLHUP handling in poll() 2026-01-22 22:09:01 +08:00
pipe_common.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00