FreeBSD Bugzilla – Attachment 7457 Details for
Bug 16173
[PATCH] fix for the kld/cdev example
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 910 bytes, created by
sobomax
on 2000-01-18 14:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
sobomax
Created:
2000-01-18 14:20:01 UTC
Size:
910 bytes
patch
obsolete
>diff -ruN module.orig/cdevmod.c module/cdevmod.c >--- module.orig/cdevmod.c Tue Jan 18 15:11:26 2000 >+++ module/cdevmod.c Mon Jan 17 15:59:25 2000 >@@ -81,19 +81,14 @@ > /* read */ noread, > /* write */ nowrite, > /* ioctl */ mydev_ioctl, >- /* stop */ nostop, >- /* reset */ noreset, >- /* devtotty */ nodevtotty, > /* poll */ nopoll, > /* mmap */ nommap, > /* strategy */ nostrategy, > /* name */ "cdev", >- /* parms */ noparms, > /* maj */ CDEV_MAJOR, > /* dump */ nodump, > /* psize */ nopsize, > /* flags */ D_TTY, >- /* maxio */ 0, > /* bmaj */ -1 > }; > >@@ -123,6 +118,7 @@ > printf("Copyright (c) 1998\n"); > printf("Rajesh Vaidheeswarran\n"); > printf("All rights reserved\n"); >+ cdevsw_add(&my_devsw); > break; /* Success*/ > > case MOD_UNLOAD: >@@ -139,4 +135,4 @@ > > /* Now declare the module to the system */ > >-DEV_MODULE(cdev, CDEV_MAJOR, -1, my_devsw, cdev_load, 0); >+DEV_MODULE(cdev, cdev_load, 0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16173
: 7457