Displaying 1 result from an estimated 1 matches for "td_retval".
Did you mean:
_retval
2008 Sep 30
1
DTrace MFC broke kldstat(2) on RELENG_7
...sed this patch to fix the problem:
%%%
Index: sys/kern/kern_linker.c
===================================================================
--- sys/kern/kern_linker.c (revision 183486)
+++ sys/kern/kern_linker.c (working copy)
@@ -1199,7 +1199,12 @@ kldstat(struct thread *td, struct kldsta
td->td_retval[0] = 0;
- return (copyout(&stat, uap->stat, sizeof(struct kld_file_stat)));
+ if (version_num == 1)
+ return (copyout(&stat, uap->stat,
+ sizeof(struct kld_file_stat_1)));
+ else
+ return (copyout(&stat, uap->stat,
+ sizeof(struct kld_file_stat)));
}
int
%%%...