| 145 | } |
| 146 | |
| 147 | int |
| 148 | kern_syscall_deregister(struct sysent *sysents, int offset, |
| 149 | const struct sysent *old_sysent) |
| 150 | { |
| 151 | struct sysent *se; |
| 152 | |
| 153 | if (offset == 0) |
| 154 | return (0); /* XXX? */ |
| 155 | |
| 156 | se = &sysents[offset]; |
| 157 | if ((se->sy_thrcnt & SY_THR_STATIC) != 0) |
| 158 | return (EINVAL); |
| 159 | syscall_thread_drain(se); |
| 160 | sysents[offset] = *old_sysent; |
| 161 | return (0); |
| 162 | } |
| 163 | |
| 164 | int |
| 165 | syscall_module_handler(struct module *mod, int what, void *arg) |
no test coverage detected