incubator-nuttx/drivers/pipes
Xiang Xiao a24ff44ae6 fs: Add file_pipe function
so pty don't need call nx_pipe and then file_detach

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ibb8d108abd76bafe53897e5fca35babcf3e1bae9
2021-01-08 11:03:19 +08:00
..
Kconfig drivers/*/Kconfig: Consolidate driver Kconfig Files. 2020-02-15 15:19:11 +01:00
Make.defs Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
fifo.c Move the declaration of nx_mkfifo/nx_pipe to nuttx/fs/fs.h 2021-01-08 11:03:19 +08:00
pipe.c fs: Add file_pipe function 2021-01-08 11:03:19 +08:00
pipe_common.c drivers/pipes: Fix a typo error 2021-01-02 02:01:52 +01:00
pipe_common.h drivers/pipes: Use inode reference counter instead of device reference counter to handle dup(). I found that if I dup() a pipe, the reference counter d_refs is not increased. If I close any of the fd, backed by the same pipe, the pipe will be freed. This causes any further usage on the fd referencing a non existent pipe. This change uses the inode reference counter, which is properly maintained during dup(). 2019-08-06 07:31:57 -06:00