Lines Matching defs:newp
174 user_addr_t newp, size_t newlen);
187 sysctl_struct(user_addr_t oldp, size_t *oldlenp, user_addr_t newp,
257 * have a sysctl newp buffer greater than 4GB we shrink it to size_t
603 user_addr_t newp, size_t newlen, proc_t p)
636 newp, newlen));
651 newp, newlen, p));
655 newp, newlen, p);
657 return sysctl_translate(name+1, namelen-1, oldp, oldlenp, newp,
663 oldlenp, newp, newlen, p);
675 error = sysctl_int(oldp, oldlenp, newp, newlen, &tmp);
731 user_addr_t newp, size_t newlen, __unused proc_t p)
745 return (sysctl_rdstring(oldp, oldlenp, newp, cdp->debugname));
747 return (sysctl_int(oldp, oldlenp, newp, newlen, cdp->debugvar));
771 user_addr_t newp, size_t newlen, int *valp)
779 if (newp && newlen != sizeof(int))
784 if (error == 0 && newp) {
785 error = copyin(newp, valp, sizeof(int));
795 sysctl_rdint(user_addr_t oldp, size_t *oldlenp, user_addr_t newp, int val)
803 if (newp)
817 user_addr_t newp, size_t newlen, quad_t *valp)
825 if (newp && newlen != sizeof(quad_t))
830 if (error == 0 && newp)
831 error = copyin(newp, valp, sizeof(quad_t));
839 sysctl_rdquad(user_addr_t oldp, size_t *oldlenp, user_addr_t newp, quad_t val)
847 if (newp)
867 user_addr_t newp, size_t newlen, char *str, int maxlen)
878 if (newp && (maxlen < 0 || newlen >= (size_t)maxlen))
890 if (error == 0 && newp) {
891 error = copyin(newp, str, newlen);
904 user_addr_t newp, size_t newlen, char *str, int maxlen)
913 if (newp && (maxlen < 0 || newlen >= (size_t)maxlen))
919 if (error == 0 && newp) {
920 error = copyin(newp, str, newlen);
932 user_addr_t newp, char *str)
941 if (newp)
955 user_addr_t newp, size_t newlen, void *sp, int len)
963 if (newp && (len < 0 || newlen > (size_t)len))
969 if (error == 0 && newp)
970 error = copyin(newp, sp, len);
980 user_addr_t newp, void *sp, int len)
988 if (newp)