HomeSort by: relevance | last modified time | path
    Searched refs:kd (Results 1 - 25 of 118) sorted by relevancy

1 2 3 4 5

  /src/lib/libkvm/
kvm_ia64.c 42 _kvm_freevtop(kvm_t *kd)
48 _kvm_initvtop(kvm_t *kd)
51 _kvm_err(kd, 0, "initvtop not yet implemented!");
56 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
59 _kvm_err(kd, 0, "vatop not yet implemented!");
64 _kvm_pa2off(kvm_t *kd, paddr_t pa)
67 _kvm_err(kd, 0, "pa2off not yet implemented!");
72 _kvm_mdopen(kvm_t *kd)
75 _kvm_err(kd, 0, "mdopen not yet implemented!");
kvm.c 87 kvm_geterr(kvm_t *kd)
89 return (kd->errbuf);
93 kvm_getkernelname(kvm_t *kd)
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, ...)
115 (void)vsnprintf(kd->errbuf,
116 sizeof(kd->errbuf), fmt, ap);
122 _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...)
133 char *cp = kd->errbuf
728 kvm_t *kd; local
742 kvm_t *kd; local
    [all...]
kvm_private.h 102 #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, member, size)
    [all...]
kvm_or1k.c 57 _kvm_freevtop(kvm_t *kd)
59 if (kd->vmst != 0)
60 free(kd->vmst);
65 _kvm_initvtop(kvm_t *kd)
75 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
79 if (ISALIVE(kd)) {
80 _kvm_err(kd, 0, "vatop called in live kernel!");
90 _kvm_pa2off(kvm_t *kd, paddr_t pa)
97 cpu_kh = kd->cpu_data;
98 e = (char *) kd->cpu_data + kd->cpu_dsize
    [all...]
kvm_riscv.c 57 _kvm_freevtop(kvm_t *kd)
59 if (kd->vmst != 0)
60 free(kd->vmst);
65 _kvm_initvtop(kvm_t *kd)
75 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
79 if (ISALIVE(kd)) {
80 _kvm_err(kd, 0, "vatop called in live kernel!");
90 _kvm_pa2off(kvm_t *kd, paddr_t pa)
97 cpu_kh = kd->cpu_data;
98 e = (char *) kd->cpu_data + kd->cpu_dsize
    [all...]
kvm_powerpc64.c 96 _kvm_freevtop(kvm_t *kd)
98 if (kd->vmst != 0)
99 free(kd->vmst);
104 _kvm_initvtop(kvm_t *kd)
118 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
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)
145 cpu_kh = kd->cpu_data
    [all...]
kvm_vax.c 69 _kvm_freevtop(kvm_t *kd)
71 if (kd->vmst != 0)
72 free(kd->vmst);
76 _kvm_initvtop(kvm_t *kd)
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->program, "pmap_stod: no such symbol")
    [all...]
kvm_hppa.c 80 _kvm_freevtop(kvm_t *kd)
84 if (kd->vmst != 0)
85 free(kd->vmst);
90 _kvm_initvtop(kvm_t *kd)
100 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
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, kd->pmfd, (void *)&pde, sizeof(pde)
    [all...]
kvm_file.c 82 kvm_deadfiles(kvm_t *kd, int op, int arg, long ofhead, int numfiles)
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->program, "can't read kfp")
    [all...]
kvm_m68k.c 85 _kvm_initvtop(kvm_t *kd)
91 vm = (struct vmstate *)_kvm_malloc(kd, sizeof (*vm));
95 kd->vmst = vm;
102 h = kd->cpu_data;
119 if ((vm->ops->initvtop)(kd) < 0)
125 kd->vmst = NULL;
131 _kvm_freevtop(kvm_t *kd)
133 (kd->vmst->ops->freevtop)(kd);
134 free(kd->vmst)
    [all...]
kvm_proc.c 180 _kvm_ureadm(kvm_t *kd, const struct miniproc *p, u_long va, u_long *cnt)
190 if (kd->swapspc == NULL) {
191 kd->swapspc = _kvm_malloc(kd, (size_t)kd->nbpg);
192 if (kd->swapspc == NULL)
204 if (KREAD(kd, addr, &vme))
223 if (KREAD(kd, addr, &amap))
227 slot = offset / kd->nbpg + vme.aref.ar_pageoff;
232 addr = (u_long)amap.am_anon + (offset / kd->nbpg) * sizeof(anonp)
    [all...]
kvm_arm.c 63 _kvm_freevtop(kvm_t * kd)
65 if (kd->vmst != 0)
66 free(kd->vmst);
70 _kvm_initvtop(kvm_t * kd)
76 _kvm_kvatop(kvm_t * kd, vaddr_t va, paddr_t *pa)
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, 0, "kcore flags not supported")
    [all...]
kvm_sh3.c 76 _kvm_freevtop(kvm_t *kd)
80 if (kd->vmst != 0)
81 free(kd->vmst);
86 _kvm_initvtop(kvm_t *kd)
96 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
98 _kvm_err(kd, 0, "vatop not yet implemented!");
106 _kvm_pa2off(kvm_t *kd, paddr_t pa)
108 _kvm_err(kd, 0, "pa2off not yet implemented!");
118 _kvm_mdopen(kvm_t *kd)
121 kd->min_uva = VM_MIN_ADDRESS
    [all...]
kvm_alpha.c 57 _kvm_freevtop(kvm_t *kd)
64 _kvm_initvtop(kvm_t *kd)
70 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
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, 0, "could not read L1 PTE")
    [all...]
kvm_i386.c 87 _kvm_freevtop(kvm_t *kd)
91 if (kd->vmst != 0)
92 free(kd->vmst);
97 _kvm_initvtop(kvm_t *kd)
99 cpu_kcore_hdr_t *cpu_kh = kd->cpu_data;
112 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
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, va, pa)
    [all...]
kvm_m68k_cmn.c 122 _kvm_cmn_freevtop(kvm_t *kd)
128 _kvm_cmn_initvtop(kvm_t *kd)
135 _kvm_cmn_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa)
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)
164 cpu_kcore_hdr_t *h = kd->cpu_data;
180 return (kd->dump_off + off + pa)
    [all...]
  /src/external/cddl/osnet/sys/sys/
sid.h 43 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)
58 kmem_free(kd->kd_name, kd->kd_len)
    [all...]
  /src/sys/kern/
subr_kcov.c 94 * The KCOV descriptors (KD) are allocated during open(), and are associated
97 * An LWP can 'enable' a KD. When this happens, this LWP becomes the owner of
98 * the KD, and no LWP can 'disable' this KD except the owner.
100 * A KD is freed when its file descriptor is closed _iff_ the KD is not active
130 kcov_lock(kcov_t *kd)
133 mutex_enter(&kd->lock);
137 kcov_unlock(kcov_t *kd)
140 mutex_exit(&kd->lock)
173 kcov_t *kd = (kcov_t *)l->l_kcov; local
228 kcov_t kd; member in struct:kcov_remote
252 kcov_t *kd; local
278 kcov_t *kd; local
432 kcov_t *kd = curlwp->l_kcov; local
441 kcov_t *kd = curlwp->l_kcov; local
454 kcov_t *kd; local
469 kcov_t *kd = fp->f_data; local
489 kcov_t *kd; local
526 kcov_t *kd, *kdbuf; local
585 kcov_t *kd; local
631 kcov_t *kd; local
    [all...]
  /src/etc/etc.sun2/
ttyaction 5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
  /src/etc/etc.sun3/
ttyaction 5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
  /src/usr.sbin/crash/arch/
mips.c 54 db_mach_init(kvm_t *kd)
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));
sparc.c 56 db_mach_init(kvm_t *kd)
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));
  /src/crypto/external/bsd/heimdal/dist/lib/krb5/
salt-aes-sha1.c 51 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.key, key)
    [all...]
krbhst.c 197 krbhst_empty(const struct krb5_krbhst_data *kd)
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)
209 if (kd->flags & KD_LARGE_MSG)
215 krbhst_get_default_port(struct krb5_krbhst_data *kd)
217 return kd->def_port;
236 parse_hostspec(krb5_context context, struct krb5_krbhst_data *kd,
246 hi->proto = krbhst_get_default_proto(kd);
621 struct krb5_krbhst_data *kd = ctx; local
665 struct krb5_krbhst_data *kd; member in struct:plctx
926 struct krb5_krbhst_data *kd; local
969 struct krb5_krbhst_data *kd; local
    [all...]
  /src/external/gpl2/lvm2/dist/lib/netbsd/
dev.c 37 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 40 milliseconds

1 2 3 4 5