Properly initialize the device_hooks in the null and console drivers to include

the select/deselect/readv/writev hooks. Not that it would matter as the static
memory there is cleared to 0 anyway.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26080 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-06-22 13:37:08 +00:00
parent a47ceb2aec
commit 57e81ac7d8
2 changed files with 14 additions and 0 deletions
@@ -785,6 +785,13 @@ find_device(const char *name)
&console_ioctl,
&console_read,
&console_write,
/* Leave select/deselect/readv/writev undefined. The kernel will
* use its own default implementation. The basic hooks above this
* line MUST be defined, however. */
NULL,
NULL,
NULL,
NULL
};
if (!strcmp(name, DEVICE_NAME))
+7
View File
@@ -92,6 +92,13 @@ find_device(const char *name)
&null_ioctl,
&null_read,
&null_write,
/* Leave select/deselect/readv/writev undefined. The kernel will
* use its own default implementation. The basic hooks above this
* line MUST be defined, however. */
NULL,
NULL,
NULL,
NULL
};
if (!strcmp(name, DEVICE_NAME))