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

12345

/netbsd-6-1-5-RELEASE/external/cddl/osnet/sys/sys/
H A Dsid.h71 ksiddomain_t *kd; local
73 kd = kmem_alloc(sizeof(*kd), KM_SLEEP);
74 strlcpy(kd->kd_name, "FreeBSD", sizeof(kd->kd_name));
75 return (kd);
79 ksiddomain_rele(ksiddomain_t *kd) argument
82 kmem_free(kd, sizeof(*kd));
/netbsd-6-1-5-RELEASE/lib/libkvm/
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
214 Pread(kvm_t *kd, int fd, void *buf, size_t nbytes, off_t offset) argument
227 _kvm_open(kvm_t *kd, const char *uf, const char *mf, const char *sf, int flag, char *errout) argument
402 _kvm_get_header(kvm_t *kd) argument
499 kvm_dump_mkheader(kvm_t *kd, off_t dump_off) argument
580 clear_gap(kvm_t *kd, bool (*write_buf)(void *, const void *, size_t), void *cookie, size_t size) argument
604 kvm_dump_header(kvm_t *kd, bool (*write_buf)(void *, const void *, size_t), void *cookie, int dumpsize) argument
676 kvm_dump_wrtheader(kvm_t *kd, FILE *fp, int dumpsize) argument
685 kvm_t *kd; local
699 kvm_t *kd; local
711 kvm_close(kvm_t *kd) argument
752 kvm_nlist(kvm_t *kd, struct nlist *nl) argument
785 kvm_dump_inval(kvm_t *kd) argument
829 kvm_read(kvm_t *kd, u_long kva, void *buf, size_t len) argument
891 kvm_write(kvm_t *kd, u_long kva, const void *buf, size_t len) argument
[all...]
H A Dkvm_powerpc64.c94 _kvm_freevtop(kvm_t *kd) argument
96 if (kd->vmst != 0)
97 free(kd->vmst);
102 _kvm_initvtop(kvm_t *kd) argument
116 _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!");
126 cpu_kh = kd->cpu_data;
137 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
144 cpu_kh = kd
166 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_private.h101 #define ISALIVE(kd) ((kd)->alive != KVM_ALIVE_DEAD)
102 #define ISKMEM(kd) ((kd)->alive == KVM_ALIVE_FILES)
103 #define ISSYSCTL(kd) ((kd)->alive == KVM_ALIVE_SYSCTL || ISKMEM(kd))
123 #define KREAD(kd, addr, obj) \
124 (kvm_read(kd, addr, (obj), sizeof(*obj)) != sizeof(*obj))
126 #define KVM_ALLOC(kd, membe
[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_hppa.c81 _kvm_freevtop(kvm_t *kd) argument
85 if (kd->vmst != 0)
86 free(kd->vmst);
91 _kvm_initvtop(kvm_t *kd) argument
101 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
111 if (ISALIVE(kd)) {
112 _kvm_err(kd, 0, "vatop called in live kernel!");
116 _kvm_syserr(kd, 0, "could not read PTE");
119 cpu_kh = kd->cpu_data;
126 if (_kvm_pread(kd, k
166 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
198 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_x86_64.c74 _kvm_freevtop(kvm_t *kd) argument
78 if (kd->vmst != 0)
79 free(kd->vmst);
84 _kvm_initvtop(kvm_t *kd) argument
94 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
102 if (ISALIVE(kd)) {
103 _kvm_err(kd, 0, "vatop called in live kernel!");
107 cpu_kh = kd->cpu_data;
117 if (_kvm_pread(kd, kd
194 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
223 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_m68k.c82 _kvm_initvtop(kvm_t *kd) argument
88 vm = (struct vmstate *)_kvm_malloc(kd, sizeof (*vm));
92 kd->vmst = vm;
99 h = kd->cpu_data;
116 if ((vm->ops->initvtop)(kd) < 0)
122 kd->vmst = NULL;
128 _kvm_freevtop(kvm_t *kd) argument
130 (kd->vmst->ops->freevtop)(kd);
131 free(kd
135 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pap) argument
141 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
152 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_file.c83 kvm_deadfiles(kvm_t *kd, int op, int arg, long ofhead, int numfiles) argument
85 size_t buflen = kd->argspc_len, n = 0;
88 char *where = kd->argspc;
94 KREAD(kd, (u_long)ofhead, &fhead)) {
95 _kvm_err(kd, kd->program, "can't read filehead");
100 (void)memcpy(kd->argspc, &fhead, sizeof(fhead));
107 if (KREAD(kd, (u_long)fp,
109 _kvm_err(kd, kd
126 kvm_getfiles(kvm_t *kd, int op, int arg, int *cnt) 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.c77 _kvm_freevtop(kvm_t *kd) argument
81 if (kd->vmst != 0)
82 free(kd->vmst);
87 _kvm_initvtop(kvm_t *kd) argument
97 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
99 _kvm_err(kd, 0, "vatop not yet implemented!");
107 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
109 _kvm_err(kd, 0, "pa2off not yet implemented!");
119 _kvm_mdopen(kvm_t *kd) argument
122 kd
[all...]
H A Dkvm_proc.c197 _kvm_ureadm(kvm_t *kd, const struct miniproc *p, u_long va, u_long *cnt) argument
207 if (kd->swapspc == NULL) {
208 kd->swapspc = _kvm_malloc(kd, (size_t)kd->nbpg);
209 if (kd->swapspc == NULL)
221 if (KREAD(kd, addr, &vme))
240 if (KREAD(kd, addr, &amap))
244 slot = offset / kd->nbpg + vme.aref.ar_pageoff;
249 addr = (u_long)amap.am_anon + (offset / kd
279 _kvm_uread(kvm_t *kd, const struct proc *p, u_long va, u_long *cnt) argument
292 _kvm_convertcred(kvm_t *kd, u_long cred, struct eproc *eproc) argument
326 kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p, struct kinfo_proc *bp, int maxcnt) argument
460 kvm_deadprocs(kvm_t *kd, int what, int arg, u_long a_allproc, u_long a_zombproc, int maxcnt) argument
488 kvm_getproc2(kvm_t *kd, int op, int arg, size_t esize, int *cnt) argument
728 kvm_getlwps(kvm_t *kd, int pid, u_long paddr, size_t esize, int *cnt) argument
828 kvm_getprocs(kvm_t *kd, int op, int arg, int *cnt) argument
893 _kvm_realloc(kvm_t *kd, void *p, size_t n) argument
909 kvm_argv(kvm_t *kd, const struct miniproc *p, u_long addr, int narg, int maxcnt) argument
1043 proc_verify(kvm_t *kd, u_long kernp, const struct miniproc *p) argument
1059 kvm_doargv(kvm_t *kd, const struct miniproc *p, int nchr, void (*info)(struct ps_strings *, u_long *, int *)) argument
1094 kvm_getargv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) argument
1103 kvm_getenvv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) argument
1112 kvm_doargv2(kvm_t *kd, pid_t pid, int type, int nchr) argument
1190 kvm_getargv2(kvm_t *kd, const struct kinfo_proc2 *kp, int nchr) argument
1197 kvm_getenvv2(kvm_t *kd, const struct kinfo_proc2 *kp, int nchr) argument
1207 kvm_ureadm(kvm_t *kd, const struct miniproc *p, u_long uva, char *buf, size_t len) argument
1233 kvm_uread(kvm_t *kd, const struct proc *p, u_long uva, char *buf, size_t len) argument
[all...]
H A Dkvm_alpha.c56 _kvm_freevtop(kvm_t *kd) argument
63 _kvm_initvtop(kvm_t *kd) argument
69 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
76 if (ISALIVE(kd)) {
77 _kvm_err(kd, 0, "vatop called in live kernel!");
81 cpu_kh = kd->cpu_data;
99 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte),
100 _kvm_pa2off(kd, pteoff)) != sizeof(pte)) {
101 _kvm_syserr(kd,
156 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
185 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_i386.c88 _kvm_freevtop(kvm_t *kd) argument
92 if (kd->vmst != 0)
93 free(kd->vmst);
98 _kvm_initvtop(kvm_t *kd) argument
100 cpu_kcore_hdr_t *cpu_kh = kd->cpu_data;
113 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
116 if (ISALIVE(kd)) {
117 _kvm_err(kd, 0, "vatop called in live kernel!");
124 return _kvm_kvatop_i386(kd, va, pa);
126 return _kvm_kvatop_i386pae(kd, v
137 _kvm_kvatop_i386(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
200 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
229 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_m68k_cmn.c121 _kvm_cmn_freevtop(kvm_t *kd) argument
127 _kvm_cmn_initvtop(kvm_t *kd) argument
134 _kvm_cmn_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
136 cpu_kcore_hdr_t *h = kd->cpu_data;
140 if (ISALIVE(kd)) {
141 _kvm_err(kd, 0, "vatop called in live kernel!");
154 return ((*vtopf)(kd, m->sysseg_pa, va, pa));
161 _kvm_cmn_pa2off(kvm_t *kd, u_long pa) argument
163 cpu_kcore_hdr_t *h = kd->cpu_data;
179 return (kd
187 vatop_030(kvm_t *kd, uint32_t stpa, vaddr_t va, paddr_t *pa) argument
248 vatop_040(kvm_t *kd, uint32_t stpa, vaddr_t va, paddr_t *pa) argument
[all...]
H A Dkvm_mips.c69 _kvm_freevtop(kvm_t *kd) argument
73 if (kd->vmst != 0)
74 free(kd->vmst);
78 _kvm_initvtop(kvm_t *kd) argument
88 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
95 if (ISALIVE(kd)) {
96 _kvm_err(kd, 0, "vatop called in live kernel!");
100 cpu_kh = kd->cpu_data;
116 _kvm_err(kd, 0, "invalid kernel virtual address");
124 _kvm_err(kd,
208 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
237 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_sparc.c82 #define VA_OFF(va) (va & (kd->nbpg - 1))
111 _kvm_freevtop(kvm_t *kd) argument
113 if (kd->vmst != 0) {
114 _kvm_err(kd, kd->program, "_kvm_freevtop: internal error");
115 kd->vmst = 0;
125 _kvm_initvtop(kvm_t *kd) argument
127 sparc64_cpu_kcore_hdr_t *cpup = kd->cpu_data;
132 kd->nbpg = 8196;
137 kd
155 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
179 _kvm_kvatop44c(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
226 _kvm_kvatop4m(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
284 _kvm_kvatop4u(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
344 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
380 _kvm_mdopen(kvm_t *kd) argument
[all...]
H A Dkvm_sparc64.c75 _kvm_freevtop(kvm_t *kd) argument
77 if (kd->vmst != 0) {
78 _kvm_err(kd, kd->program, "_kvm_freevtop: internal error");
79 kd->vmst = 0;
91 _kvm_initvtop(kvm_t *kd) argument
93 kd->nbpg = 0x2000;
100 * mapping information in kd->vm. Returns the result in pa, and returns
105 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument
107 cpu_kcore_hdr_t *cpup = kd
234 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument
270 _kvm_mdopen(kvm_t *kd) argument
[all...]
/netbsd-6-1-5-RELEASE/etc/etc.sun2/
H A Dttyaction5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
/netbsd-6-1-5-RELEASE/etc/etc.sun3/
H A Dttyaction5 kd * chown ${USER}:tty /dev/kbd /dev/mouse /dev/fb
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/04_comp_ellint_1/
H A Dcompile_2.cc31 double kd = 0.5; local
36 comp_ellint_1(kd);
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/05_comp_ellint_2/
H A Dcompile_2.cc31 double kd = 0.5; local
36 comp_ellint_2(kd);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dkrbhst.c167 krbhst_empty(const struct krb5_krbhst_data *kd) argument
169 return kd->index == &kd->hosts;
173 * Return the default protocol for the `kd' (either TCP or UDP)
177 krbhst_get_default_proto(struct krb5_krbhst_data *kd) argument
179 if (kd->flags & KD_LARGE_MSG)
200 parse_hostspec(krb5_context context, struct krb5_krbhst_data *kd, argument
210 hi->proto = krbhst_get_default_proto(kd);
292 append_host_hostinfo(struct krb5_krbhst_data *kd, struct krb5_krbhst_info *host) argument
296 for(h = kd
308 append_host_string(krb5_context context, struct krb5_krbhst_data *kd, const char *host, int def_port, int port) argument
424 get_next(struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
436 srv_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *proto, const char *service) argument
460 config_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *conf_string) argument
488 fallback_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *serv_string, int port, int proto) argument
555 struct krb5_krbhst_data *kd = ctx; local
591 plugin_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, enum locate_service_type type) argument
633 kdc_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
698 admin_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
752 kpasswd_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
812 krb524_get_next(krb5_context context, struct krb5_krbhst_data *kd, krb5_krbhst_info **host) argument
873 struct krb5_krbhst_data *kd; local
916 struct krb5_krbhst_data *kd; local
[all...]
H A Dsalt-aes.c51 struct _krb5_key_data kd; local
66 kd.schedule = NULL;
67 ALLOC(kd.key, 1);
68 if(kd.key == NULL) {
72 kd.key->keytype = enctype;
73 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size);
82 et->keytype->size, kd.key->keyvalue.data);
84 _krb5_free_key_data(context, &kd, et);
90 ret = _krb5_derive_key(context, et, &kd, "kerberos", strlen("kerberos"));
92 ret = krb5_copy_keyblock_contents(context, kd
[all...]
/netbsd-6-1-5-RELEASE/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 138 milliseconds

12345