Lines Matching refs:sysents
124 kern_syscall_register(struct sysent *sysents, int *offset, in kern_syscall_register() argument
134 if (sysents[i].sy_call == (sy_call_t *)lkmnosys) in kern_syscall_register()
141 } else if (sysents[*offset].sy_call != (sy_call_t *)lkmnosys && in kern_syscall_register()
142 sysents[*offset].sy_call != (sy_call_t *)lkmressys) { in kern_syscall_register()
143 KASSERT(sysents[*offset].sy_call != NULL, in kern_syscall_register()
148 KASSERT(sysents[*offset].sy_thrcnt == SY_THR_ABSENT, in kern_syscall_register()
150 *old_sysent = sysents[*offset]; in kern_syscall_register()
152 sysents[*offset] = *new_sysent; in kern_syscall_register()
153 atomic_store_rel_32(&sysents[*offset].sy_thrcnt, flags); in kern_syscall_register()
158 kern_syscall_deregister(struct sysent *sysents, int offset, in kern_syscall_deregister() argument
166 se = &sysents[offset]; in kern_syscall_deregister()
170 sysents[offset] = *old_sysent; in kern_syscall_deregister()
182 kern_syscall_module_handler(struct sysent *sysents, struct module *mod, in kern_syscall_module_handler() argument
192 error = kern_syscall_register(sysents, data->offset, in kern_syscall_module_handler()
219 error = kern_syscall_deregister(sysents, *data->offset, in kern_syscall_module_handler()
239 kern_syscall_helper_register(struct sysent *sysents, in kern_syscall_helper_register() argument
246 error = kern_syscall_register(sysents, &sd1->syscall_no, in kern_syscall_helper_register()
249 kern_syscall_helper_unregister(sysents, sd); in kern_syscall_helper_register()
265 kern_syscall_helper_unregister(struct sysent *sysents, in kern_syscall_helper_unregister() argument
271 kern_syscall_deregister(sysents, sd1->syscall_no, in kern_syscall_helper_unregister()