Home
last modified time | relevance | path

Searched refs:mdb_io_t (Results 1 – 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_io_impl.h39 ssize_t (*io_read)(mdb_io_t *, void *, size_t);
40 ssize_t (*io_write)(mdb_io_t *, const void *, size_t);
41 off64_t (*io_seek)(mdb_io_t *, off64_t, int);
42 int (*io_ctl)(mdb_io_t *, int, void *);
43 void (*io_close)(mdb_io_t *);
44 const char *(*io_name)(mdb_io_t *);
45 void (*io_link)(mdb_io_t *, mdb_iob_t *);
46 void (*io_unlink)(mdb_io_t *, mdb_iob_t *);
47 int (*io_setattr)(mdb_io_t *, int, uint_t);
48 void (*io_suspend)(mdb_io_t *);
[all …]
H A Dmdb_io.h43 typedef struct mdb_io mdb_io_t; /* I/O implementation */ typedef
94 extern mdb_io_t *mdb_io_hold(mdb_io_t *);
95 extern void mdb_io_rele(mdb_io_t *);
96 extern void mdb_io_destroy(mdb_io_t *);
98 extern mdb_iob_t *mdb_iob_create(mdb_io_t *, uint_t);
106 extern void mdb_iob_push_io(mdb_iob_t *, mdb_io_t *);
107 extern mdb_io_t *mdb_iob_pop_io(mdb_iob_t *);
110 extern void mdb_iob_setpager(mdb_iob_t *, mdb_io_t *);
166 extern mdb_io_t *mdb_logio_create(mdb_io_t *);
167 extern mdb_io_t *mdb_fdio_create_path(const char **, const char *, int, mode_t);
[all …]
H A Dmdb_logio.c44 logio_read(mdb_io_t *io, void *buf, size_t nbytes) in logio_read()
46 mdb_io_t *logio = io->io_data; in logio_read()
64 logio_write(mdb_io_t *io, const void *buf, size_t nbytes) in logio_write()
66 mdb_io_t *logio = io->io_data; in logio_write()
82 logio_close(mdb_io_t *io) in logio_close()
88 logio_name(mdb_io_t *io) in logio_name()
110 mdb_io_t *
111 mdb_logio_create(mdb_io_t *logio) in mdb_logio_create()
113 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); in mdb_logio_create()
H A Dmdb_fdio.c55 fdio_read(mdb_io_t *io, void *buf, size_t nbytes) in fdio_read()
66 fdio_write(mdb_io_t *io, const void *buf, size_t nbytes) in fdio_write()
77 fdio_seek(mdb_io_t *io, off64_t offset, int whence) in fdio_seek()
88 fdio_ctl(mdb_io_t *io, int req, void *arg) in fdio_ctl()
102 fdio_close(mdb_io_t *io) in fdio_close()
111 fdio_name(mdb_io_t *io) in fdio_name()
121 mdb_io_t *
188 fdio_bdev_read(mdb_io_t *io, void *buf, size_t nbytes) in fdio_bdev_read()
232 fdio_bdev_write(mdb_io_t *io, const void *buf, size_t nbytes) in fdio_bdev_write()
287 mdb_io_t *
[all …]
H A Dmdb_strio.c47 strio_read(mdb_io_t *io, void *buf, size_t nbytes) in strio_read()
63 strio_seek(mdb_io_t *io, off64_t offset, int whence) in strio_seek()
93 strio_close(mdb_io_t *io) in strio_close()
102 strio_name(mdb_io_t *io) in strio_name()
124 mdb_io_t *
127 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); in mdb_strio_create()
151 mdb_io_t *io; in mdb_iob_isastr()
H A Dmdb_pipeio.c75 pio_read(mdb_io_t *io, void *buf, size_t nbytes) in pio_read()
141 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) in pio_write()
202 pio_ctl(mdb_io_t *io, int req, void *arg) in pio_ctl()
219 pio_close(mdb_io_t *io) in pio_close()
226 pio_name(mdb_io_t *io) in pio_name()
232 pio_link(mdb_io_t *io, mdb_iob_t *iob) in pio_link()
250 pio_unlink(mdb_io_t *io, mdb_iob_t *iob) in pio_unlink()
325 mdb_io_t *
328 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); in mdb_pipeio_create()
347 mdb_io_t *io; in mdb_iob_isapipe()
H A Dmdb_memio.c42 memio_read(mdb_io_t *io, void *buf, size_t nbytes) in memio_read()
58 memio_seek(mdb_io_t *io, off64_t offset, int whence) in memio_seek()
99 mdb_io_t *
102 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); in mdb_memio_create()
H A Dmdb_shell.c121 shellio_unlink(mdb_io_t *io, mdb_iob_t *iob) in shellio_unlink()
123 mdb_io_t *fdio = io->io_next; in shellio_unlink()
134 shellio_close(mdb_io_t *io) in shellio_close()
165 mdb_io_t *io; in mdb_shell_pipe()
202 io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); in mdb_shell_pipe()
H A Dmdb_io.c193 iob_write(mdb_iob_t *iob, mdb_io_t *io, const void *buf, size_t n) in iob_write()
220 iob_read(mdb_iob_t *iob, mdb_io_t *io) in iob_read()
382 mdb_iob_create(mdb_io_t *io, uint_t flags) in mdb_iob_create()
409 mdb_io_t *pio = mdb_pipeio_create(rdsvc, wrsvc); in mdb_iob_pipe()
504 mdb_iob_push_io(mdb_iob_t *iob, mdb_io_t *io) in mdb_iob_push_io()
512 mdb_io_t *
515 mdb_io_t *io = iob->iob_iop; in mdb_iob_pop_io()
538 mdb_iob_setpager(mdb_iob_t *iob, mdb_io_t *pgio) in mdb_iob_setpager()
1650 spbuf_write(mdb_io_t *io, const void *buf, size_t buflen) in spbuf_write()
1687 mdb_io_t *io, spbuf_t *spb, char *spb_buf, size_t spb_len) in iob_spb_create()
[all …]
H A Dmdb_gelf.h65 mdb_io_t *gf_io; /* I/o backend for ELF file */
92 extern int mdb_gelf_check(mdb_io_t *, Elf32_Ehdr *, GElf_Half);
93 extern mdb_gelf_file_t *mdb_gelf_create(mdb_io_t *, GElf_Half, int);
102 ssize_t (*)(mdb_io_t *, void *, size_t), mdb_gelf_rw_t);
H A Dmdb_termio.c217 mdb_io_t *tio_io; /* Pointer back to containing i/o */
218 mdb_io_t *tio_out_io; /* Terminal output backend */
219 mdb_io_t *tio_in_io; /* Terminal input backend */
258 static ssize_t termio_read(mdb_io_t *, void *, size_t);
259 static ssize_t termio_write(mdb_io_t *, const void *, size_t);
260 static off64_t termio_seek(mdb_io_t *, off64_t, int);
261 static int termio_ctl(mdb_io_t *, int, void *);
262 static void termio_close(mdb_io_t *);
263 static const char *termio_name(mdb_io_t *);
264 static void termio_link(mdb_io_t *, mdb_iob_t *);
[all …]
H A Dmdb_kb_kvm.c43 static mdb_io_t *
46 mdb_io_t *io; in libkvm_sym_io()
H A Dmdb_rawfile.c51 mdb_io_t *r_object_fio;
52 mdb_io_t *r_core_fio;
113 rf_read(mdb_io_t *io, void *buf, size_t nbytes, uint64_t addr) in rf_read()
130 rf_write(mdb_io_t *io, const void *buf, size_t nbytes, uint64_t addr) in rf_write()
229 rf_print_map(mdb_io_t *io, const char *type, int tflags, in rf_print_map()
421 mdb_io_t *io[2] = { NULL, NULL }; in mdb_rawfile_tgt_create()
H A Dmdb_kproc.c90 mdb_io_t *kpf_fio; /* ELF file back-end */
135 static mdb_io_t *kp_io_create(mdb_tgt_t *, kp_map_t *);
1062 kp_io_read(mdb_io_t *io, void *buf, size_t nbytes) in kp_io_read()
1090 kp_io_seek(mdb_io_t *io, off64_t offset, int whence) in kp_io_seek()
1121 kp_io_close(mdb_io_t *io) in kp_io_close()
1127 kp_io_name(mdb_io_t *io) in kp_io_name()
1151 static mdb_io_t *
1157 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); in kp_io_create()
H A Dmdb.h163 mdb_io_t *m_term; /* Terminal for interactive mode */
164 mdb_io_t *m_log; /* Log file i/o backend (NULL if not logging) */
H A Dmdb_proc.h141 mdb_io_t *p_fio; /* Current file i/o backend */
142 mdb_io_t *p_aout_fio; /* Original file i/o backend */
H A Dmdb_kb.h54 mdb_io_t *(*kb_sym_io)(void *, const char *);
H A Dmdb_main.c425 extern int mdb_kvm_is_compressed_dump(mdb_io_t *); in main()
426 extern int mdb_kvm_is_dump(mdb_io_t *); in main()
433 mdb_io_t *in_io, *out_io, *err_io, *null_io; in main()
837 mdb_io_t *io; in main()
1094 mdb_io_t *rc_io; in main()
H A Dmdb_kvm.h82 mdb_io_t *k_fio; /* File i/o backend */
H A Dmdb_gelf.c582 gelf32_init(mdb_gelf_file_t *gf, mdb_io_t *io, const Elf32_Ehdr *ehdr) in gelf32_init()
655 gelf64_init(mdb_gelf_file_t *gf, mdb_io_t *io, Elf64_Ehdr *ehdr) in gelf64_init()
714 mdb_gelf_check(mdb_io_t *io, Elf32_Ehdr *ehp, GElf_Half etype) in mdb_gelf_check()
761 mdb_gelf_create(mdb_io_t *io, GElf_Half etype, int mode) in mdb_gelf_create()
1886 ssize_t (*prw)(mdb_io_t *, void *, size_t), mdb_gelf_rw_t rw) in mdb_gelf_rw() argument
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_promio.c57 pio_read(mdb_io_t *io, void *buf, size_t nbytes) in pio_read()
68 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) in pio_write()
79 pio_seek(mdb_io_t *io, off64_t offset, int whence) in pio_seek()
88 pio_ctl(mdb_io_t *io, int req, void *arg) in pio_ctl()
153 pio_close(mdb_io_t *io) in pio_close()
161 pio_name(mdb_io_t *io) in pio_name()
185 mdb_io_t *
188 mdb_io_t *io; in kmdb_promio_create()
195 io = mdb_zalloc(sizeof (mdb_io_t), UM_SLEEP); in kmdb_promio_create()
H A Dkmdb_io.h37 extern mdb_io_t *kmdb_promio_create(char *);
H A Dkmdb_fdio.c41 mdb_io_t *
H A Dkmdb_main.c160 mdb_io_t *in_io, *out_io, *err_io, *null_io; in kmdb_init()
305 mdb_io_t *inio, *outio; in kmdb_startup()
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/
H A Dmdb_kb.c230 mdb_io_t *io = NULL; in xkb_identify()
1136 mdb_io_t *io; in xkb_open_elf()
1474 static mdb_io_t *
1477 mdb_io_t *io = mdb_memio_create(xkb->xkb_namelist, xkb->xkb_namesize); in xkb_sym_io()
1577 .kb_sym_io = (mdb_io_t *(*)())xkb_sym_io,

12