| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: callback.9,v 1.2 2009/10/14 23:55:26 joerg Exp $ | | 1 | .\" $NetBSD: callback.9,v 1.3 2009/10/28 18:20:41 njoly Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2009 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2009 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
| @@ -89,28 +89,26 @@ The callback object itself is specified | | | @@ -89,28 +89,26 @@ The callback object itself is specified |
89 | The function pointer is specified by | | 89 | The function pointer is specified by |
90 | .Fa fn . | | 90 | .Fa fn . |
91 | .It Fn callback_unregister "ch" "ce" | | 91 | .It Fn callback_unregister "ch" "ce" |
92 | Unregister the callback function from the structure specified by | | 92 | Unregister the callback function from the structure specified by |
93 | .Fa ch . | | 93 | .Fa ch . |
94 | The entry should be passed as | | 94 | The entry should be passed as |
95 | .Fa ce . | | 95 | .Fa ce . |
96 | This function may block. | | 96 | This function may block. |
97 | .It Fn callback_run_roundrobin "ch" "arg" | | 97 | .It Fn callback_run_roundrobin "ch" "arg" |
98 | Executes all functions registered in the callback | | 98 | Executes all functions registered in the callback |
99 | structure, specified by | | 99 | structure, specified by |
100 | .Fa ch . | | 100 | .Fa ch . |
101 | The functions are executed in round-robin fashion. | | 101 | The functions are executed in round-robin fashion. |
102 | The entry should be passed as | | | |
103 | .Fa ce . | | | |
104 | The value of | | 102 | The value of |
105 | .Fa arg | | 103 | .Fa arg |
106 | will be passed to the callback functions. | | 104 | will be passed to the callback functions. |
107 | .El | | 105 | .El |
108 | .Sh CODE REFERENCES | | 106 | .Sh CODE REFERENCES |
109 | This section describes places within the | | 107 | This section describes places within the |
110 | .Nx | | 108 | .Nx |
111 | source tree where actual code implementing the | | 109 | source tree where actual code implementing the |
112 | .Nm | | 110 | .Nm |
113 | interface can be found. | | 111 | interface can be found. |
114 | All pathnames are relative to | | 112 | All pathnames are relative to |
115 | .Pa /usr/src . | | 113 | .Pa /usr/src . |
116 | .Pp | | 114 | .Pp |