| | 121 | |
| | 122 | ==== fun_online ==== |
| | 123 | {{{ |
| | 124 | int (*fun_online)(ddf_fun_t *fun) |
| | 125 | }}} |
| | 126 | This entry point is called by DDF to ask the driver to online a function. The driver must |
| | 127 | online the function ''fun''. It may also online other functions, if necessary (in case the |
| | 128 | function states are interlocked somehow). For many drivers this function will simply call |
| | 129 | {{{ddf_fun_online(fun)}}}. |
| | 130 | |
| | 131 | If this entry point is not implemented, it should be either set to NULL or it should always |
| | 132 | return ENOTSUP. |
| | 133 | |
| | 134 | ==== fun_offline ==== |
| | 135 | {{{ |
| | 136 | int (*fun_offline)(ddf_fun_t *fun) |
| | 137 | }}} |
| | 138 | This entry point is called by DDF to ask the driver to offline a function. The driver must |
| | 139 | offline the function ''fun''. It may also offline other functions, if necessary (in case the |
| | 140 | function states are interlocked somehow). For many drivers this function will simply call |
| | 141 | {{{ddf_fun_offline(fun)}}}. |
| | 142 | |
| | 143 | If this entry point is not implemented, it should be either set to NULL or it should always |
| | 144 | return ENOTSUP. |