extmod/uos: Expose stream ioctl constants, an ioctl() function.#10031
extmod/uos: Expose stream ioctl constants, an ioctl() function.#10031damz wants to merge 1 commit into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10031 +/- ##
=======================================
Coverage 98.33% 98.33%
=======================================
Files 156 156
Lines 20520 20520
=======================================
Hits 20179 20179
Misses 341 341 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
I can see how this is a useful addition. But my reservations with it are:
You can also see that The main use case here (as far as I see it, at least in the immediate case at hand) is for unit testing. So to move forward I'd suggest just adding |
|
Sounds very reasonable, closing this. |
This PR exposes a new
uos.ioctl()function, and the related ioctl constants.I have three reasons to do this:
io.IOBaseto re-define all these constants;ioctl(MP_STREAM_POLL)needs to forward that request to an underlying stream (likeusslhas to do)