There's only one error that we can get back right now, but future
changes will add some more cases that we need to watch out for. Start
by returning errors and propagating them back.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 61019 Build 57903: arc lint + arc unit
Event Timeline
sys/dev/usb/serial/usb_serial.c | ||
---|---|---|
809 | Why return ENOTTY and then translate the error? |
sys/dev/usb/serial/usb_serial.c | ||
---|---|---|
809 | Will fix- originally this bubbled up to ucom_ioctl as well, where it didn't get translated. Later revisions added ucom_command_barrier which will get used in some contexts where ENOTTY makes sense for the tty layer (ioctl) and others where ENXIO makes more sense. |
Comment Actions
Return ENXIO from ucom_queue_command; the ENOTTY conversion to ENXIO in some
callers goes away for now.
Normally the clnt_rc.c (reconnect layer) would
do a CLSET_TCP_DDP and the so_setsockopt()
would be done for CLSET_TCP_DDP in clnt_vc.c
and ignored in clnt_dg.c.
I've never been much of an object oriented guy,
but the Sun folk loved these layers.