Home
last modified time | relevance | path

Searched refs:kd (Results 1 – 25 of 55) sorted by relevance

123

/minix/lib/libkvm/
H A Dkvm.c164 _kvm_syserr(kd, kd->program, "Lseek"); in Lseek()
221 _kvm_syserr(kd, kd->program, "Pread"); in Pread()
319 _kvm_syserr(kd, kd->program, "%s", uf); in _kvm_open()
337 _kvm_syserr(kd, kd->program, "%s", mf); in _kvm_open()
341 _kvm_syserr(kd, kd->program, "%s", mf); in _kvm_open()
357 _kvm_syserr(kd, kd->program, "%s", sf); in _kvm_open()
457 sz = Pread(kd, kd->pmfd, kd->cpu_data, cpu_hdr.c_size, (off_t)offset); in _kvm_get_header()
534 kd->cpu_data = _kvm_malloc(kd, kd->cpu_dsize); in kvm_dump_mkheader()
539 sz = Pread(kd, kd->pmfd, kd->cpu_data, cpu_hdr.c_size, in kvm_dump_mkheader()
552 if (Lseek(kd, kd->pmfd, kd->dump_off, SEEK_SET) == -1) { in kvm_dump_mkheader()
[all …]
H A Dkvm_proc.c207 kd->swapspc = _kvm_malloc(kd, (size_t)kd->nbpg); in _kvm_ureadm()
261 if (_kvm_pread(kd, kd->pmfd, kd->swapspc, (size_t)kd->nbpg, in _kvm_ureadm()
266 _kvm_pread(kd, kd->swfd, kd->swapspc, (size_t)kd->nbpg, in _kvm_ureadm()
929 kd->argv = _kvm_malloc(kd, kd->argc * sizeof(*kd->argv)); in kvm_argv()
934 kd->argv = _kvm_realloc(kd, kd->argv, kd->argc * in kvm_argv()
940 kd->argspc = _kvm_malloc(kd, (size_t)kd->nbpg); in kvm_argv()
946 kd->argbuf = _kvm_malloc(kd, (size_t)kd->nbpg); in kvm_argv()
981 kd->argspc = _kvm_realloc(kd, kd->argspc, in kvm_argv()
1141 kd->argv = _kvm_malloc(kd, kd->argc * sizeof(*kd->argv)); in kvm_doargv2()
1146 kd->argv = _kvm_realloc(kd, kd->argv, kd->argc * in kvm_doargv2()
[all …]
H A Dkvm_x86_64.c73 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
77 if (kd->vmst != 0) in _kvm_freevtop()
78 free(kd->vmst); in _kvm_freevtop()
83 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
101 if (ISALIVE(kd)) { in _kvm_kvatop()
106 cpu_kh = kd->cpu_data; in _kvm_kvatop()
116 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop()
130 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop()
149 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop()
168 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop()
[all …]
H A Dkvm_arm.c63 _kvm_freevtop(kvm_t * kd) in _kvm_freevtop() argument
65 if (kd->vmst != 0) in _kvm_freevtop()
66 free(kd->vmst); in _kvm_freevtop()
83 if (ISALIVE(kd)) { in _kvm_kvatop()
87 cpu_kh = kd->cpu_data; in _kvm_kvatop()
110 if (_kvm_pread(kd, kd->pmfd, (void *) &pde, sizeof(pd_entry_t), in _kvm_kvatop()
138 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pt_entry_t), in _kvm_kvatop()
170 cpu_kh = kd->cpu_data; in _kvm_pa2off()
191 _kvm_mdopen(kvm_t * kd) in _kvm_mdopen() argument
204 kd->max_uva = max_uva; in _kvm_mdopen()
[all …]
H A Dkvm_file.c87 char *where = kd->argspc; in kvm_deadfiles()
94 _kvm_err(kd, kd->program, "can't read filehead"); in kvm_deadfiles()
106 if (KREAD(kd, (u_long)fp, in kvm_deadfiles()
108 _kvm_err(kd, kd->program, "can't read kfp"); in kvm_deadfiles()
118 _kvm_err(kd, kd->program, "inconsistent nfiles"); in kvm_deadfiles()
133 if (ISSYSCTL(kd)) { in kvm_getfiles()
139 _kvm_syserr(kd, kd->program, "kvm_getprocs"); in kvm_getfiles()
145 _kvm_syserr(kd, kd->program, "kvm_getfiles"); in kvm_getfiles()
164 _kvm_err(kd, kd->program, in kvm_getfiles()
169 _kvm_err(kd, kd->program, "can't read numfiles"); in kvm_getfiles()
[all …]
H A Dkvm_sparc64.c75 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
77 if (kd->vmst != 0) { in _kvm_freevtop()
78 _kvm_err(kd, kd->program, "_kvm_freevtop: internal error"); in _kvm_freevtop()
79 kd->vmst = 0; in _kvm_freevtop()
91 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
93 kd->nbpg = 0x2000; in _kvm_initvtop()
172 if (_kvm_pread(kd, kd->pmfd, &pdir, sizeof(pdir), in _kvm_kvatop()
184 if (_kvm_pread(kd, kd->pmfd, &ptbl, sizeof(ptbl), in _kvm_kvatop()
196 if (_kvm_pread(kd, kd->pmfd, &data, sizeof(data), in _kvm_kvatop()
270 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_alpha.c57 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
64 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
77 if (ISALIVE(kd)) { in _kvm_kvatop()
82 cpu_kh = kd->cpu_data; in _kvm_kvatop()
100 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
113 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
126 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
164 cpu_kh = kd->cpu_data; in _kvm_pa2off()
177 return (kd->dump_off + off); in _kvm_pa2off()
186 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_hppa.c80 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
84 if (kd->vmst != 0) in _kvm_freevtop()
85 free(kd->vmst); in _kvm_freevtop()
90 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
110 if (ISALIVE(kd)) { in _kvm_kvatop()
118 cpu_kh = kd->cpu_data; in _kvm_kvatop()
125 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop()
139 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop()
173 cpu_kh = kd->cpu_data; in _kvm_pa2off()
197 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_sparc.c110 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
112 if (kd->vmst != 0) { in _kvm_freevtop()
113 _kvm_err(kd, kd->program, "_kvm_freevtop: internal error"); in _kvm_freevtop()
114 kd->vmst = 0; in _kvm_freevtop()
131 kd->nbpg = 8196; in _kvm_initvtop()
136 kd->nbpg = 4096; in _kvm_initvtop()
140 _kvm_err(kd, kd->program, "Unsupported CPU type"); in _kvm_initvtop()
261 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), foff) != sizeof(pte)) { in _kvm_kvatop4m()
262 _kvm_syserr(kd, kd->program, "cannot read pte for " in _kvm_kvatop4m()
379 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_powerpc64.c96 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
98 if (kd->vmst != 0) in _kvm_freevtop()
99 free(kd->vmst); in _kvm_freevtop()
104 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
121 if (ISALIVE(kd)) { in _kvm_kvatop()
145 cpu_kh = kd->cpu_data; in _kvm_pa2off()
146 e = (char *) kd->cpu_data + kd->cpu_dsize; in _kvm_pa2off()
148 off = kd->dump_off; in _kvm_pa2off()
167 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
179 kd->usrstack = max_uva; in _kvm_mdopen()
[all …]
H A Dkvm_i386.c87 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
91 if (kd->vmst != 0) in _kvm_freevtop()
92 free(kd->vmst); in _kvm_freevtop()
97 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
115 if (ISALIVE(kd)) { in _kvm_kvatop()
144 cpu_kh = kd->cpu_data; in _kvm_kvatop_i386()
152 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop_i386()
174 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop_i386()
206 cpu_kh = kd->cpu_data; in _kvm_pa2off()
228 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_vax.c69 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
71 if (kd->vmst != 0) in _kvm_freevtop()
72 free(kd->vmst); in _kvm_freevtop()
76 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
86 kd->vmst = vm; in _kvm_initvtop()
88 if (fstat(kd->pmfd, &st) < 0) in _kvm_initvtop()
95 _kvm_err(kd, kd->program, "pmap_stod: no such symbol"); in _kvm_initvtop()
122 end = kd->vmst->end; in _kvm_kvatop()
140 return(kd->dump_off + pa); in _kvm_pa2off()
150 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_m68k.c84 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
94 kd->vmst = vm; in _kvm_initvtop()
101 h = kd->cpu_data; in _kvm_initvtop()
124 kd->vmst = NULL; in _kvm_initvtop()
130 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
132 (kd->vmst->ops->freevtop)(kd); in _kvm_freevtop()
133 free(kd->vmst); in _kvm_freevtop()
139 return ((kd->vmst->ops->kvatop)(kd, va, pap)); in _kvm_kvatop()
145 return ((kd->vmst->ops->pa2off)(kd, pa)); in _kvm_pa2off()
154 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_mips.c68 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
72 if (kd->vmst != 0) in _kvm_freevtop()
73 free(kd->vmst); in _kvm_freevtop()
77 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
94 if (ISALIVE(kd)) { in _kvm_kvatop()
99 cpu_kh = kd->cpu_data; in _kvm_kvatop()
181 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
214 cpu_kh = kd->cpu_data; in _kvm_pa2off()
227 return (kd->dump_off + off); in _kvm_pa2off()
236 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_m68k_cmn.c122 _kvm_cmn_freevtop(kvm_t *kd) in _kvm_cmn_freevtop() argument
128 _kvm_cmn_initvtop(kvm_t *kd) in _kvm_cmn_initvtop() argument
141 if (ISALIVE(kd)) { in _kvm_cmn_kvatop()
180 return (kd->dump_off + off + pa); in _kvm_cmn_pa2off()
192 struct vmstate *vm = kd->vmst; in vatop_030()
217 if (_kvm_pread(kd, kd->pmfd, &ste, sizeof(ste), in vatop_030()
232 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in vatop_030()
253 struct vmstate *vm = kd->vmst; in vatop_040()
279 if (_kvm_pread(kd, kd->pmfd, &ste, sizeof(ste), in vatop_040()
297 if (_kvm_pread(kd, kd->pmfd, &ste, sizeof(ste), in vatop_040()
[all …]
H A Dkvm_riscv.c57 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
59 if (kd->vmst != 0) in _kvm_freevtop()
60 free(kd->vmst); in _kvm_freevtop()
65 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
79 if (ISALIVE(kd)) { in _kvm_kvatop()
97 cpu_kh = kd->cpu_data; in _kvm_pa2off()
98 e = (char *) kd->cpu_data + kd->cpu_dsize; in _kvm_pa2off()
100 off = kd->dump_off; in _kvm_pa2off()
119 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
121 kd->usrstack = USRSTACK; in _kvm_mdopen()
[all …]
H A Dkvm_or1k.c57 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
59 if (kd->vmst != 0) in _kvm_freevtop()
60 free(kd->vmst); in _kvm_freevtop()
65 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
79 if (ISALIVE(kd)) { in _kvm_kvatop()
97 cpu_kh = kd->cpu_data; in _kvm_pa2off()
98 e = (char *) kd->cpu_data + kd->cpu_dsize; in _kvm_pa2off()
100 off = kd->dump_off; in _kvm_pa2off()
119 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
121 kd->usrstack = USRSTACK; in _kvm_mdopen()
[all …]
H A Dkvm_private.h101 #define ISALIVE(kd) ((kd)->alive != KVM_ALIVE_DEAD) argument
102 #define ISKMEM(kd) ((kd)->alive == KVM_ALIVE_FILES) argument
103 #define ISSYSCTL(kd) ((kd)->alive == KVM_ALIVE_SYSCTL || ISKMEM(kd)) argument
123 #define KREAD(kd, addr, obj) \ argument
126 #define KVM_ALLOC(kd, member, size) \ argument
128 if (kd->member == NULL) \
129 kd->member = _kvm_malloc(kd, kd->member ## _len = size); \
131 kd->member = _kvm_realloc(kd, kd->member, \
132 kd->member ## _len = size); \
133 if (kd->member == NULL) { \
[all …]
H A Dkvm_powerpc.c104 if (kd->vmst != 0) in _kvm_freevtop()
105 free(kd->vmst); in _kvm_freevtop()
126 cpu_kh = kd->cpu_data; in _kvm_match_601bat()
154 cpu_kh = kd->cpu_data; in _kvm_match_bat()
233 if (_kvm_pread(kd, kd->pmfd, (void *) &pteg, sizeof(pteg), in _kvm_match_sr()
251 if (_kvm_pread(kd, kd->pmfd, (void *) &pteg, sizeof(pteg), in _kvm_match_sr()
276 if (ISALIVE(kd)) { in _kvm_kvatop()
343 e = (char *) kd->cpu_data + kd->cpu_dsize; in _kvm_pa2off()
345 off = kd->dump_off; in _kvm_pa2off()
364 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
[all …]
H A Dkvm_sh3.c76 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
80 if (kd->vmst != 0) in _kvm_freevtop()
81 free(kd->vmst); in _kvm_freevtop()
86 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
96 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) in _kvm_kvatop() argument
98 _kvm_err(kd, 0, "vatop not yet implemented!"); in _kvm_kvatop()
106 _kvm_pa2off(kvm_t *kd, paddr_t pa) in _kvm_pa2off() argument
118 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
121 kd->usrstack = USRSTACK; in _kvm_mdopen()
122 kd->min_uva = VM_MIN_ADDRESS; in _kvm_mdopen()
[all …]
H A Dkvm_aarch64.c56 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop() argument
63 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop() argument
71 if (ISALIVE(kd)) { in _kvm_kvatop()
139 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
141 _kvm_syserr(kd, 0, "could not read pte"); in _kvm_kvatop()
176 _kvm_pa2off(kvm_t *kd, paddr_t pa) in _kvm_pa2off() argument
191 return kd->dump_off + off; in _kvm_pa2off()
200 _kvm_mdopen(kvm_t *kd) in _kvm_mdopen() argument
203 kd->usrstack = USRSTACK; in _kvm_mdopen()
204 kd->min_uva = VM_MIN_ADDRESS; in _kvm_mdopen()
[all …]
H A Dkvm_i386pae.c68 _kvm_kvatop_i386pae(kvm_t *kd, vaddr_t va, paddr_t *pa) in _kvm_kvatop_i386pae() argument
76 cpu_kh = kd->cpu_data; in _kvm_kvatop_i386pae()
87 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop_i386pae()
88 _kvm_pa2off(kd, pde_pa)) != sizeof(pde)) { in _kvm_kvatop_i386pae()
89 _kvm_syserr(kd, 0, "could not read PDE"); in _kvm_kvatop_i386pae()
97 _kvm_err(kd, 0, "invalid translation (invalid PDE)"); in _kvm_kvatop_i386pae()
110 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop_i386pae()
111 _kvm_pa2off(kd, pte_pa)) != sizeof(pte)) { in _kvm_kvatop_i386pae()
112 _kvm_syserr(kd, 0, "could not read PTE"); in _kvm_kvatop_i386pae()
120 _kvm_err(kd, 0, "invalid translation (invalid PTE)"); in _kvm_kvatop_i386pae()
H A Dkvm_sun2.c106 _kvm_sun2_initvtop(kvm_t *kd) in _kvm_sun2_initvtop() argument
108 cpu_kcore_hdr_t *h = kd->cpu_data; in _kvm_sun2_initvtop()
111 p = kd->cpu_data; in _kvm_sun2_initvtop()
113 kd->vmst->private = p; in _kvm_sun2_initvtop()
119 _kvm_sun2_freevtop(kvm_t *kd) in _kvm_sun2_freevtop() argument
122 kd->vmst->private = (void*)0; in _kvm_sun2_freevtop()
134 cpu_kcore_hdr_t *h = kd->cpu_data; in _kvm_sun2_kvatop()
136 struct vmstate *v = kd->vmst; in _kvm_sun2_kvatop()
142 if (ISALIVE(kd)) { in _kvm_sun2_kvatop()
178 _kvm_sun2_pa2off(kvm_t *kd, paddr_t pa) in _kvm_sun2_pa2off() argument
[all …]
H A Dkvm_sun3.c106 _kvm_sun3_initvtop(kvm_t *kd) in _kvm_sun3_initvtop() argument
108 cpu_kcore_hdr_t *h = kd->cpu_data; in _kvm_sun3_initvtop()
111 p = kd->cpu_data; in _kvm_sun3_initvtop()
113 kd->vmst->private = p; in _kvm_sun3_initvtop()
119 _kvm_sun3_freevtop(kvm_t *kd) in _kvm_sun3_freevtop() argument
122 kd->vmst->private = (void*)0; in _kvm_sun3_freevtop()
134 cpu_kcore_hdr_t *h = kd->cpu_data; in _kvm_sun3_kvatop()
136 struct vmstate *v = kd->vmst; in _kvm_sun3_kvatop()
142 if (ISALIVE(kd)) { in _kvm_sun3_kvatop()
178 _kvm_sun3_pa2off(kvm_t *kd, paddr_t pa) in _kvm_sun3_pa2off() argument
[all …]
/minix/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dkrbhst.c169 return kd->index == &kd->hosts; in krbhst_empty()
429 kd->index = &(*kd->index)->next; in get_next()
475 append_host_string(context, kd, hostlist[i], kd->def_port, kd->port); in config_get_hosts()
498 kd->fallback_count, kd->realm, serv_string); in fallback_get_hosts()
798 kd->port = kd->def_port; in kpasswd_get_next()
800 ret = (*kd->get_next)(context, kd, host); in kpasswd_get_next()
857 kd->port = kd->def_port; in krb524_get_next()
859 return (*kd->get_next)(context, kd, host); in krb524_get_next()
875 if((kd = calloc(1, sizeof(*kd))) == NULL) in common_init()
879 free(kd); in common_init()
[all …]

123