Lines Matching refs:to
125 * Get the symbol and string table sizes for a kernel module. Add it to the
172 struct toffsets *to;
182 to = arg;
203 symp[i].st_name += to->to_stridx;
210 if (len > to->to_resid) {
215 to->to_resid -= len;
216 KSYMS_EMIT(buf, to->to_symoff, len);
224 if (strsz > to->to_resid)
227 to->to_resid -= strsz;
228 KSYMS_EMIT(strtab, to->to_stroff, strsz);
229 to->to_stridx += strsz;
244 struct toffsets to;
281 /* XXX - is there a way to put the actual .text addr/size here? */
287 /* XXX - is there a way to put the actual .data addr/size here? */
340 to.to_symoff = uaddr + hdr->kh_shdr[SHDR_SYMTAB].sh_offset;
341 to.to_stroff = uaddr + hdr->kh_shdr[SHDR_STRTAB].sh_offset;
342 to.to_stridx = 0;
347 to.to_resid = resid - sizeof(struct ksyms_hdr);
355 error = linker_file_foreach(ksyms_add, &to);
357 if (to.to_resid != 0)
415 * KLD_SLOCK). Therefore, simply try upto 3 times to get a "clean"
480 * Since the snapshot buffer is in the user space we have to copy it
481 * in to the kernel and then back out. The extra copy saves valuable