make_dev.9 (1dfbd9c2f9e3e5fc6504f0e3c0ceb8b5e1be9499) | make_dev.9 (2557913d4b7c559321e6c94a6b6b2c51d89d4786) |
---|---|
1.\" Copyright (c) 1999 Chris Costello 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 98 unchanged lines hidden (view full) --- 107.Fn make_dev 108and makes another (aliased) name for this device. 109It is an error to call 110.Fn make_dev_alias 111prior to calling 112.Fn make_dev . 113.Pp 114The | 1.\" Copyright (c) 1999 Chris Costello 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 98 unchanged lines hidden (view full) --- 107.Fn make_dev 108and makes another (aliased) name for this device. 109It is an error to call 110.Fn make_dev_alias 111prior to calling 112.Fn make_dev . 113.Pp 114The |
115.Fa cdev 116returned by 117.Fn make_dev 118and 119.Fn make_dev_alias 120has two fields, 121.Fa si_drv1 122and 123.Fa si_drv2 , 124that are available to store state. Both fields are of type 125.Ft void * . 126These are designed to replace the 127.Fa minor 128argument to 129.Fn make_dev . 130.Pp 131The |
|
115.Fn destroy_dev 116function takes the returned 117.Fa cdev 118from 119.Fn make_dev 120and destroys the registration for that device. 121Do not call 122.Fn destroy_dev --- 30 unchanged lines hidden --- | 132.Fn destroy_dev 133function takes the returned 134.Fa cdev 135from 136.Fn make_dev 137and destroys the registration for that device. 138Do not call 139.Fn destroy_dev --- 30 unchanged lines hidden --- |