Searched refs:kd (Results 1 - 25 of 117) sorted by relevance

12345

/netbsd-current/lib/libkvm/
H A Dkvm_ia64.c42 _kvm_freevtop(kvm_t *kd) argument
48 _kvm_initvtop(kvm_t *kd) argument
51 _kvm_err(kd, 0, "initvtop not yet implemented!");
56 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
59 _kvm_err(kd, 0, "vatop not yet implemented!");
64 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
67 _kvm_err(kd, 0, "pa2off not yet implemented!");
72 _kvm_mdopen(kvm_t *kd) argument
75 _kvm_err(kd, 0, "mdopen not yet implemented!");
H A Dkvm.c87 kvm_geterr(kvm_t *kd) argument
89 return (kd->errbuf);
93 kvm_getkernelname(kvm_t *kd) argument
95 return kd->kernelname;
99 * Report an error using printf style arguments. "program" is kd->program
105 _kvm_err(kvm_t *kd, const char *program, const char *fmt, ...) argument
115 (void)vsnprintf(kd->errbuf,
116 sizeof(kd->errbuf), fmt, ap);
122 _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...) argument
133 char *cp = kd
144 _kvm_malloc(kvm_t *kd, size_t n) argument
158 Lseek(kvm_t *kd, int fd, off_t offset, int whence) argument
172 _kvm_pread(kvm_t *kd, int fd, void *buf, size_t size, off_t off) argument
219 _kvm_pwrite(kvm_t *kd, const void *buf, size_t size, off_t off) argument
236 Pread(kvm_t *kd, int fd, void *buf, size_t nbytes, off_t offset) argument
249 _kvm_open(kvm_t *kd, const char *uf, const char *mf, const char *sf, int flag, char *errout) argument
426 _kvm_get_header(kvm_t *kd) argument
523 kvm_dump_mkheader(kvm_t *kd, off_t dump_off) argument
623 clear_gap(kvm_t *kd, bool (*write_buf)(void *, const void *, size_t), void *cookie, size_t size) argument
647 kvm_dump_header(kvm_t *kd, bool (*write_buf)(void *, const void *, size_t), void *cookie, int dumpsize) argument
719 kvm_dump_wrtheader(kvm_t *kd, FILE *fp, int dumpsize) argument
728 kvm_t *kd; local
742 kvm_t *kd; local
754 kvm_close(kvm_t *kd) argument
797 kvm_nlist(kvm_t *kd, struct nlist *nl) argument
813 kvm_dump_inval(kvm_t *kd) argument
857 kvm_read(kvm_t *kd, u_long kva, void *buf, size_t len) argument
921 kvm_write(kvm_t *kd, u_long kva, const void *buf, size_t len) argument
[all...]
H A Dkvm_private.h102 #define ISALIVE(kd) ((kd)->alive != KVM_ALIVE_DEAD)
103 #define ISKMEM(kd) ((kd)->alive == KVM_ALIVE_FILES)
104 #define ISSYSCTL(kd) ((kd)->alive == KVM_ALIVE_SYSCTL || ISKMEM(kd))
124 #define KREAD(kd, addr, obj) \
125 (kvm_read(kd, addr, (obj), sizeof(*obj)) != sizeof(*obj))
127 #define KVM_ALLOC(kd, membe
[all...]
H A Dkvm_riscv.c57 _kvm_freevtop(kvm_t *kd) argument
59 if (kd->vmst != 0)
60 free(kd->vmst);
65 _kvm_initvtop(kvm_t *kd) argument
75 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
79 if (ISALIVE(kd)) {
80 _kvm_err(kd, 0, "vatop called in live kernel!");
90 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
97 cpu_kh = kd->cpu_data;
98 e = (char *) kd
119 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_or1k.c57 _kvm_freevtop(kvm_t *kd) argument
59 if (kd->vmst != 0)
60 free(kd->vmst);
65 _kvm_initvtop(kvm_t *kd) argument
75 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
79 if (ISALIVE(kd)) {
80 _kvm_err(kd, 0, "vatop called in live kernel!");
90 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
97 cpu_kh = kd->cpu_data;
98 e = (char *) kd
119 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_vax.c69 _kvm_freevtop(kvm_t *kd) argument
71 if (kd->vmst != 0)
72 free(kd->vmst);
76 _kvm_initvtop(kvm_t *kd) argument
82 vm = (struct vmstate *)_kvm_malloc(kd, sizeof(*vm));
86 kd->vmst = vm;
88 if (fstat(kd->pmfd, &st) < 0)
94 if (kvm_nlist(kd, nl) != 0) {
95 _kvm_err(kd, kd
112 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
138 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
150 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_powerpc64.c96 _kvm_freevtop(kvm_t *kd) argument
98 if (kd->vmst != 0)
99 free(kd->vmst);
104 _kvm_initvtop(kvm_t *kd) argument
118 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
121 if (ISALIVE(kd)) {
122 _kvm_err(kd, 0, "vatop called in live kernel!");
127 cpu_kcore_hdr_t *cpu_kh = kd->cpu_data;
138 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
145 cpu_kh = kd
167 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_hppa.c80 _kvm_freevtop(kvm_t *kd) argument
84 if (kd->vmst != 0)
85 free(kd->vmst);
90 _kvm_initvtop(kvm_t *kd) argument
100 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
110 if (ISALIVE(kd)) {
111 _kvm_err(kd, 0, "vatop called in live kernel!");
115 _kvm_syserr(kd, 0, "could not read PTE");
118 cpu_kh = kd->cpu_data;
125 if (_kvm_pread(kd, k
165 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
197 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_file.c82 kvm_deadfiles(kvm_t *kd, int op, int arg, long ofhead, int numfiles) argument
84 size_t buflen = kd->argspc_len, n = 0;
87 char *where = kd->argspc;
93 KREAD(kd, (u_long)ofhead, &fhead)) {
94 _kvm_err(kd, kd->program, "can't read filehead");
99 (void)memcpy(kd->argspc, &fhead, sizeof(fhead));
106 if (KREAD(kd, (u_long)fp,
108 _kvm_err(kd, kd
125 kvm_getfiles(kvm_t *kd, int op, int arg, int *cnt) argument
[all...]
H A Dkvm_m68k.c84 _kvm_initvtop(kvm_t *kd) argument
90 vm = (struct vmstate *)_kvm_malloc(kd, sizeof (*vm));
94 kd->vmst = vm;
101 h = kd->cpu_data;
118 if ((vm->ops->initvtop)(kd) < 0)
124 kd->vmst = NULL;
130 _kvm_freevtop(kvm_t *kd) argument
132 (kd->vmst->ops->freevtop)(kd);
133 free(kd
137 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pap) argument
143 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
154 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_proc.c201 _kvm_ureadm(kvm_t *kd, const struct miniproc *p, u_long va, u_long *cnt) argument
211 if (kd->swapspc == NULL) {
212 kd->swapspc = _kvm_malloc(kd, (size_t)kd->nbpg);
213 if (kd->swapspc == NULL)
225 if (KREAD(kd, addr, &vme))
244 if (KREAD(kd, addr, &amap))
248 slot = offset / kd->nbpg + vme.aref.ar_pageoff;
253 addr = (u_long)amap.am_anon + (offset / kd
283 _kvm_uread(kvm_t *kd, const struct proc *p, u_long va, u_long *cnt) argument
296 _kvm_convertcred(kvm_t *kd, u_long cred, struct eproc *eproc) argument
330 kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p, struct kinfo_proc *bp, int maxcnt) argument
464 kvm_deadprocs(kvm_t *kd, int what, int arg, u_long a_allproc, u_long a_zombproc, int maxcnt) argument
492 kvm_getproc2(kvm_t *kd, int op, int arg, size_t esize, int *cnt) argument
732 kvm_getlwps(kvm_t *kd, int pid, u_long paddr, size_t esize, int *cnt) argument
832 kvm_getprocs(kvm_t *kd, int op, int arg, int *cnt) argument
897 _kvm_realloc(kvm_t *kd, void *p, size_t n) argument
913 kvm_argv(kvm_t *kd, const struct miniproc *p, u_long addr, int narg, int maxcnt) argument
1047 proc_verify(kvm_t *kd, u_long kernp, const struct miniproc *p) argument
1063 kvm_doargv(kvm_t *kd, const struct miniproc *p, int nchr, void (*info)(struct ps_strings *, u_long *, int *)) argument
1098 kvm_getargv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) argument
1107 kvm_getenvv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) argument
1116 kvm_doargv2(kvm_t *kd, pid_t pid, int type, int nchr) argument
1194 kvm_getargv2(kvm_t *kd, const struct kinfo_proc2 *kp, int nchr) argument
1201 kvm_getenvv2(kvm_t *kd, const struct kinfo_proc2 *kp, int nchr) argument
1211 kvm_ureadm(kvm_t *kd, const struct miniproc *p, u_long uva, char *buf, size_t len) argument
1237 kvm_uread(kvm_t *kd, const struct proc *p, u_long uva, char *buf, size_t len) argument
[all...]
H A Dkvm_arm.c63 _kvm_freevtop(kvm_t * kd) argument
65 if (kd->vmst != 0)
66 free(kd->vmst);
70 _kvm_initvtop(kvm_t * kd) argument
76 _kvm_kvatop(kvm_t * kd, vaddr_t va, paddr_t *pa) argument
83 if (ISALIVE(kd)) {
84 _kvm_err(kd, 0, "vatop called in live kernel!");
87 cpu_kh = kd->cpu_data;
90 _kvm_err(kd, 0, "unsupported kcore structure version");
94 _kvm_err(kd,
163 _kvm_pa2off(kvm_t * kd, u_long pa) argument
191 _kvm_mdopen(kvm_t * kd) argument
[all...]
H A Dkvm_sh3.c76 _kvm_freevtop(kvm_t *kd) argument
80 if (kd->vmst != 0)
81 free(kd->vmst);
86 _kvm_initvtop(kvm_t *kd) argument
96 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
98 _kvm_err(kd, 0, "vatop not yet implemented!");
106 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
108 _kvm_err(kd, 0, "pa2off not yet implemented!");
118 _kvm_mdopen(kvm_t *kd) argument
121 kd
[all...]
H A Dkvm_i386.c87 _kvm_freevtop(kvm_t *kd) argument
91 if (kd->vmst != 0)
92 free(kd->vmst);
97 _kvm_initvtop(kvm_t *kd) argument
99 cpu_kcore_hdr_t *cpu_kh = kd->cpu_data;
112 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
115 if (ISALIVE(kd)) {
116 _kvm_err(kd, 0, "vatop called in live kernel!");
123 return _kvm_kvatop_i386(kd, va, pa);
125 return _kvm_kvatop_i386pae(kd, v
136 _kvm_kvatop_i386(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
199 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
228 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_alpha.c57 _kvm_freevtop(kvm_t *kd) argument
64 _kvm_initvtop(kvm_t *kd) argument
70 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
77 if (ISALIVE(kd)) {
78 _kvm_err(kd, 0, "vatop called in live kernel!");
82 cpu_kh = kd->cpu_data;
100 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte),
101 _kvm_pa2off(kd, pteoff)) != sizeof(pte)) {
102 _kvm_syserr(kd,
157 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
186 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_m68k_cmn.c122 _kvm_cmn_freevtop(kvm_t *kd) argument
128 _kvm_cmn_initvtop(kvm_t *kd) argument
135 _kvm_cmn_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
137 cpu_kcore_hdr_t *h = kd->cpu_data;
141 if (ISALIVE(kd)) {
142 _kvm_err(kd, 0, "vatop called in live kernel!");
155 return ((*vtopf)(kd, m->sysseg_pa, va, pa));
162 _kvm_cmn_pa2off(kvm_t *kd, u_long pa) argument
164 cpu_kcore_hdr_t *h = kd->cpu_data;
180 return (kd
188 vatop_030(kvm_t *kd, uint32_t stpa, vaddr_t va, paddr_t *pa) argument
249 vatop_040(kvm_t *kd, uint32_t stpa, vaddr_t va, paddr_t *pa) argument
[all...]
/netbsd-current/external/cddl/osnet/sys/sys/
H A Dsid.h43 ksiddomain_t *kd; local
47 kd = kmem_alloc(sizeof(*kd), KM_SLEEP);
48 kd->kd_len = (uint_t)len;
49 kd->kd_name = kmem_alloc(len, KM_SLEEP);
50 strcpy(kd->kd_name, domain);
51 return (kd);
55 ksiddomain_rele(ksiddomain_t *kd) argument
58 kmem_free(kd->kd_name, kd
[all...]
/netbsd-current/sys/kern/
H A Dsubr_kcov.c128 kcov_lock(kcov_t *kd) argument
131 mutex_enter(&kd->lock);
135 kcov_unlock(kcov_t *kd) argument
138 mutex_exit(&kd->lock);
157 kcov_free(kcov_t *kd) argument
160 KASSERT(kd != NULL);
161 if (kd->buf != NULL) {
162 uvm_deallocate(kernel_map, (vaddr_t)kd->buf, kd->bufsize);
164 mutex_destroy(&kd
171 kcov_t *kd = (kcov_t *)l->l_kcov; local
185 kcov_allocbuf(kcov_t *kd, uint64_t nent) argument
226 kcov_t kd; member in struct:kcov_remote
250 kcov_t *kd; local
276 kcov_t *kd; local
313 kcov_remote_enable(kcov_t *kd, int mode) argument
328 kcov_remote_disable(kcov_t *kd) argument
342 kcov_remote_attach(kcov_t *kd, struct kcov_ioc_remote_attach *args) argument
358 kcov_remote_detach(kcov_t *kd) argument
372 kcov_setbufsize(kcov_t *kd, uint64_t *args) argument
382 kcov_enable(kcov_t *kd, uint64_t *args) argument
408 kcov_disable(kcov_t *kd) argument
430 kcov_t *kd = curlwp->l_kcov; local
439 kcov_t *kd = curlwp->l_kcov; local
452 kcov_t *kd; local
467 kcov_t *kd = fp->f_data; local
487 kcov_t *kd; local
524 kcov_t *kd, *kdbuf; local
583 kcov_t *kd; local
629 kcov_t *kd; local
[all...]
/netbsd-current/etc/etc.sun2/
H A Dttyaction5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
/netbsd-current/etc/etc.sun3/
H A Dttyaction5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
/netbsd-current/usr.sbin/crash/arch/
H A Dsparc.c56 db_mach_init(kvm_t *kd) argument
59 if (kvm_nlist(kd, nl) == -1) {
60 errx(EXIT_FAILURE, "kvm_nlist: %s", kvm_geterr(kd));
62 if ((size_t)kvm_read(kd, nl[0].n_value, &pcb, sizeof(pcb)) !=
64 errx(EXIT_FAILURE, "cannot read dumppcb: %s", kvm_geterr(kd));
H A Dmips.c54 db_mach_init(kvm_t *kd) argument
57 if (kvm_nlist(kd, nl) == -1) {
58 errx(EXIT_FAILURE, "kvm_nlist: %s", kvm_geterr(kd));
60 if ((size_t)kvm_read(kd, nl[0].n_value, &pcb, sizeof(pcb)) !=
62 warnx("cannot read dumppcb: %s", kvm_geterr(kd));
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dsalt-aes-sha1.c51 struct _krb5_key_data kd; local
66 kd.schedule = NULL;
67 ALLOC(kd.key, 1);
68 if (kd.key == NULL)
70 kd.key->keytype = enctype;
71 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size);
81 et->keytype->size, kd.key->keyvalue.data);
83 _krb5_free_key_data(context, &kd, et);
89 ret = _krb5_derive_key(context, et, &kd, "kerberos", strlen("kerberos"));
91 ret = krb5_copy_keyblock_contents(context, kd
[all...]
H A Dkrbhst.c197 krbhst_empty(const struct krb5_krbhst_data *kd) argument
199 return kd->index == &kd->hosts;
203 * Return the default protocol for the `kd' (either TCP or UDP)
207 krbhst_get_default_proto(struct krb5_krbhst_data *kd) argument
209 if (kd->flags & KD_LARGE_MSG)
215 krbhst_get_default_port(struct krb5_krbhst_data *kd) argument
217 return kd->def_port;
236 parse_hostspec(krb5_context context, struct krb5_krbhst_data *kd, argument
246 hi->proto = krbhst_get_default_proto(kd);
326 append_host_hostinfo(struct krb5_krbhst_data *kd, struct krb5_krbhst_info *host) argument
342 append_host_string(krb5_context context, struct krb5_krbhst_data *kd, const char *host, int def_port, int port) argument
430 get_next(struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
442 srv_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *proto, const char *service) argument
469 config_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *conf_string) argument
497 fallback_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *serv_string, int port, int proto) argument
584 add_plugin_host(struct krb5_krbhst_data *kd, const char *host, const char *port, int portnum, int proto) argument
621 struct krb5_krbhst_data *kd = ctx; local
665 struct krb5_krbhst_data *kd; member in struct:plctx
686 plugin_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, enum locate_service_type type) argument
705 hostnames_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *type) argument
720 kdc_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
791 admin_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
845 kpasswd_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
926 struct krb5_krbhst_data *kd; local
969 struct krb5_krbhst_data *kd; local
[all...]
/netbsd-current/external/gpl2/lvm2/dist/lib/netbsd/
H A Ddev.c37 struct kinfo_drivers *kd; local
49 if ((kd = malloc (val_len)) == NULL){
50 printf("malloc kd info error\n");
55 if (sysctlbyname("kern.drivers", kd, &val_len, NULL, 0) < 0) {
56 printf("sysctlbyname failed kd");
60 for (i = 0, val_len /= sizeof(*kd); i < val_len; i++)
62 if (kd[i].d_cmajor != -1 && kd[i].d_bmajor != -1) {
64 if (kd[i].d_cmajor == major)

Completed in 130 milliseconds

12345