MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kern_syscall_deregister

Function kern_syscall_deregister

freebsd/kern/kern_syscalls.c:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int
148kern_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
164int
165syscall_module_handler(struct module *mod, int what, void *arg)

Callers 2

Calls 1

syscall_thread_drainFunction · 0.85

Tested by

no test coverage detected