make_dev.9 (792b236965cfaa38761bc8eac58017ba4d1118f8) make_dev.9 (edf0984dae67812c48363d8b51bb6e1aed275672)
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.

--- 70 unchanged lines hidden (view full) ---

79#ifndef _POSIX_SOURCE
80#define S_ISTXT 0001000
81#endif
82.Ed
83.Pp
84The
85.Fn make_dev_alias
86function takes the returned
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.

--- 70 unchanged lines hidden (view full) ---

79#ifndef _POSIX_SOURCE
80#define S_ISTXT 0001000
81#endif
82.Ed
83.Pp
84The
85.Fn make_dev_alias
86function takes the returned
87.Fa dev_t
87.Ft dev_t
88from
89.Fn make_dev
88from
89.Fn make_dev
90and makes another (aliased) name for this device. It is an error to call
90and makes another (aliased) name for this device.
91It is an error to call
91.Fn make_dev_alias
92prior to calling
93.Fn make_dev .
94.Pp
95The
96.Fn destroy_dev
97function takes the returned
98.Fa dev_t
99from
100.Fn make_dev
92.Fn make_dev_alias
93prior to calling
94.Fn make_dev .
95.Pp
96The
97.Fn destroy_dev
98function takes the returned
99.Fa dev_t
100from
101.Fn make_dev
101and destroys the registration for that device. Do not call
102and destroys the registration for that device.
103Do not call
102.Fn destroy_dev
103on devices that were created with
104.Fn make_dev_alias .
105.Sh HISTORY
106The
107.Fn make_dev
108and
109.Fn destroy_dev
110functions first appeared in
111.Fx 4.0 .
112The function
113.Fn make_dev_alias
114first appeared in
115.Fx 4.1 .
104.Fn destroy_dev
105on devices that were created with
106.Fn make_dev_alias .
107.Sh HISTORY
108The
109.Fn make_dev
110and
111.Fn destroy_dev
112functions first appeared in
113.Fx 4.0 .
114The function
115.Fn make_dev_alias
116first appeared in
117.Fx 4.1 .