]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/devfs: Fix device_create() function comment
authorMarc Rittinghaus <marc.rittinghaus@unikraft.io>
Wed, 26 Apr 2023 11:09:51 +0000 (13:09 +0200)
committerUnikraft <monkey@unikraft.io>
Tue, 2 May 2023 20:36:20 +0000 (20:36 +0000)
The current comment does not state the correct return values.

Signed-off-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #855

lib/devfs/device.c

index 53d8b557b8290533cb7ff7c953e253d862c3238a..3fedc13fb7b1a06469e2f36b7751c3e2b38a8c7c 100644 (file)
@@ -82,8 +82,8 @@ device_lookup(const char *name)
  * device_create - create new device object.
  *
  * A device object is created by the device driver to provide
- * I/O services to applications.  Returns device ID on
- * success, or 0 on failure.
+ * I/O services to applications. Returns 0 on success, an errno
+ * number otherwise.
  */
 int
 device_create(struct driver *drv, const char *name, int flags,