Lines Matching refs:sysent
85 #include <sys/sysent.h>
347 systrace_init(struct sysent *actual, systrace_sysent_t **interposed)
349 systrace_sysent_t *sysent = *interposed;
352 if (sysent == NULL) {
353 *interposed = sysent = kmem_zalloc(sizeof (systrace_sysent_t) *
358 struct sysent *a = &actual[i];
359 systrace_sysent_t *s = &sysent[i];
378 systrace_init(struct sysent *actual, systrace_sysent_t **interposed)
381 systrace_sysent_t *ssysent = *interposed; /* Avoid sysent shadow warning
382 from bsd/sys/sysent.h */
391 struct sysent *a = &actual[i];
423 systrace_init(sysent, &systrace_sysent);
504 ASSERT(sysent[sysnum].sy_callc == dtrace_systrace_syscall);
514 if (sysent[sysnum].sy_callc == systrace_sysent[sysnum].stsy_underlying) {
516 ml_nofault_copy((vm_offset_t)&dss, (vm_offset_t)&sysent[sysnum].sy_callc, sizeof(vm_offset_t));
534 if (sysent[sysnum].sy_callc == dtrace_systrace_syscall)
535 ml_nofault_copy((vm_offset_t)&systrace_sysent[sysnum].stsy_underlying, (vm_offset_t)&sysent[sysnum].sy_callc, sizeof(systrace_sysent[sysnum].stsy_underlying));