nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

drivers/pipe: Change to the block mode by file_ioctl(FIONBIO)

Open xiaoxiang781216 opened this issue 1 year ago • 1 comments

Summary

it's simpler and safer than file_fcntl(F_SETFL)

Impact

code refactor only

Testing

internal test

xiaoxiang781216 avatar Mar 06 '24 18:03 xiaoxiang781216

@xiaoxiang781216 did you try it: https://acassis.wordpress.com/2021/03/04/using-fifo-on-nuttx-to-send-data-from-your-board-to-computer/ ?

acassis avatar Mar 06 '24 18:03 acassis

@xiaoxiang781216 did you try it: https://acassis.wordpress.com/2021/03/04/using-fifo-on-nuttx-to-send-data-from-your-board-to-computer/ ?

not try, but we use pipe in many places, so the test coverage is good.

xiaoxiang781216 avatar Mar 07 '24 03:03 xiaoxiang781216