tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Return status ENXIO / ESRCH in kern_drvctl.c

While browsing the code for other stuff, I ran into what appears to be an inconsistency in drvctl(4).

In most cases, when the device specified cannot be found, we return ENXIO - Device not configured.

But in routine drvctl_command_get_properties(), if the device is not found, we return ESRCH - No such process. (This is in file sys/kern/kern_drvctl.c rev 1.32 at line 462)

It seems to me that this is incorrect, and we should return ENXIO here.

As a side note, it would be nice if we had a drvctl(4) man page.   :)

| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at |
| Kernel Developer |                          | pgoyette at  |

Home | Main Index | Thread Index | Old Index