/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 257 Elf32_Nhdr *nhdr; /* note header */ in read_elf32() local 276 nhdr = NULL; in read_elf32() 329 phdr->p_filesz, (void *)nhdr); in read_elf32() 331 nhdr = (Elf32_Nhdr *)note_buf; in read_elf32() 332 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf32() 336 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf32() 345 namep = (caddr_t)(nhdr + 1); in read_elf32() 347 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf32() 349 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf32() 350 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 351 volatile struct sb_hdr nhdr, *nhdrp; in scan() local 403 nhdrp = &nhdr; in scan() 505 nhdrp = &nhdr; in scan() 802 struct sb_hdr nhdr; in cap_write() local 822 nhdr.sbh_origlen = htonl(hdrp->sbh_origlen); in cap_write() 823 nhdr.sbh_msglen = htonl(hdrp->sbh_msglen); in cap_write() 824 nhdr.sbh_totlen = htonl(hdrp->sbh_totlen); in cap_write() 825 nhdr.sbh_drops = htonl(hdrp->sbh_drops); in cap_write() 826 nhdr.sbh_timestamp.tv_sec = htonl(hdrp->sbh_timestamp.tv_sec); in cap_write() 827 nhdr.sbh_timestamp.tv_usec = htonl(hdrp->sbh_timestamp.tv_usec); in cap_write() [all …]
|
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 169 xlatetom_nhdr(Elf_Nhdr *nhdr) in xlatetom_nhdr() argument 173 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_namesz); in xlatetom_nhdr() 174 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_descsz); in xlatetom_nhdr() 175 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_type); in xlatetom_nhdr() 312 Elf_Nhdr Nhdr, *nhdr; /* note header just read */ in process_phdr() local 322 nhdr = &Nhdr; in process_phdr() 342 if (pread64(EI->elffd, (void *)nhdr, nsz, offset) in process_phdr() 347 if (xlatetom_nhdr(nhdr) == ELF_READ_FAIL) in process_phdr() 350 ntype = nhdr->n_type; in process_phdr() 351 nmsz = nhdr->n_namesz; in process_phdr() [all …]
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 282 Elf64_Nhdr *nhdr = (Elf64_Nhdr *)pos; in xkb_identify() local 286 name = pos + sizeof (*nhdr); in xkb_identify() 287 desc = (char *)P2ROUNDUP((uintptr_t)name + nhdr->n_namesz, 4); in xkb_identify() 289 pos = desc + nhdr->n_descsz; in xkb_identify() 291 if (nhdr->n_type != XEN_ELFNOTE_DUMPCORE_XEN_VERSION) in xkb_identify() 1170 Elf64_Nhdr *nhdr = (Elf64_Nhdr *)pos; in xkb_open_elf() local 1175 name = pos + sizeof (*nhdr); in xkb_open_elf() 1176 desc = (char *)P2ROUNDUP((uintptr_t)name + nhdr->n_namesz, 4); in xkb_open_elf() 1178 pos = desc + nhdr->n_descsz; in xkb_open_elf() 1180 switch (nhdr->n_type) { in xkb_open_elf() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | arc.c | 3157 arc_buf_hdr_t *nhdr; in arc_hdr_realloc() local 3173 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE); in arc_hdr_realloc() 3178 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE); in arc_hdr_realloc() 3181 arc_hdr_set_flags(nhdr, ARC_FLAG_HAS_L1HDR); in arc_hdr_realloc() 3187 nhdr->b_l1hdr.b_state = arc_l2c_only; in arc_hdr_realloc() 3190 ASSERT3P(nhdr->b_l1hdr.b_pabd, ==, NULL); in arc_hdr_realloc() 3223 arc_hdr_clear_flags(nhdr, ARC_FLAG_HAS_L1HDR); in arc_hdr_realloc() 3229 (void) buf_hash_insert(nhdr, NULL); in arc_hdr_realloc() 3241 list_insert_after(&dev->l2ad_buflist, hdr, nhdr); in arc_hdr_realloc() 3256 (void) zfs_refcount_add_many(&dev->l2ad_alloc, arc_hdr_size(nhdr), in arc_hdr_realloc() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_subr2.c | 724 smbfs_node_hdr_t nhdr; in sn_hashfind() local 730 bzero(&nhdr, sizeof (nhdr)); in sn_hashfind() 731 nhdr.hdr_n_rpath = (char *)rpath; in sn_hashfind() 732 nhdr.hdr_n_rplen = rplen; in sn_hashfind() 735 np = avl_find(&mi->smi_hash_avl, &nhdr, pwhere); in sn_hashfind()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 2574 Elf64_Nhdr nhdr; local 2582 if (read(P->asfd, &nhdr, sizeof (nhdr)) != sizeof (nhdr)) { 2597 namesz = P2ROUNDUP((off64_t)nhdr.n_namesz, (off64_t)4); 2606 nhdr.n_type, nhdr.n_namesz, nhdr.n_descsz); 2613 if (nhdr.n_type < ARRAY_SIZE(nhdlrs) && 2614 nhdlrs[nhdr.n_type] != NULL) { 2615 if (nhdlrs[nhdr.n_type](P, nhdr.n_descsz) < 0) { 2617 nhdr.n_type); 2626 if (nhdr.n_type == NT_PRSTATUS || 2627 nhdr.n_type == NT_PRPSINFO) [all …]
|
H A D | Pgcore.c | 385 Elf64_Nhdr nhdr; in write_note() member 391 n.nhdr.n_type = type; in write_note() 392 n.nhdr.n_namesz = 5; in write_note() 393 n.nhdr.n_descsz = roundup(descsz, 4); in write_note() 400 if (gc_pwrite64(fd, desc, n.nhdr.n_descsz, *offp) != 0) in write_note() 403 *offp += n.nhdr.n_descsz; in write_note()
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf_impl.h | 71 Nhdr nhdr; member
|
H A D | elf.c | 1604 note.nhdr.n_type = type; in elfnote() 1615 note.nhdr.n_namesz = 5; in elfnote() 1616 note.nhdr.n_descsz = roundup(descsz, sizeof (Word)); in elfnote() 1625 note.nhdr.n_descsz, rlimit, credp)) in elfnote() 1628 *offsetp += note.nhdr.n_descsz; in elfnote()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcip.c | 149 fcph_network_hdr_t *nhdr, int type); 2754 fcph_network_hdr_t *nhdr; in fcip_data_cb() local 2803 nhdr = (fcph_network_hdr_t *)buf->ub_buffer; in fcip_data_cb() 2854 if ((fcip_wwn_compare(&nhdr->net_dest_addr, &fport->fcipp_pwwn, in fcip_data_cb() 2856 (!IS_BROADCAST_ADDR(&nhdr->net_dest_addr))) { in fcip_data_cb() 2860 IS_BROADCAST_ADDR(&nhdr->net_dest_addr)) { in fcip_data_cb() 3051 fcph_network_hdr_t *nhdr; in fcip_cache_arp_broadcast() local 3061 nhdr = (fcph_network_hdr_t *)buf->ub_buffer; in fcip_cache_arp_broadcast() 3064 frp = fcip_lookup_rtable(fptr, &nhdr->net_src_addr, FCIP_COMPARE_NWWN); in fcip_cache_arp_broadcast() 3073 bcopy((void *)&nhdr->net_src_addr, (void *)&map.map_pwwn, in fcip_cache_arp_broadcast() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_dialog.c | 1861 sip_header_t nhdr = NULL; in sip_dialog_add_new_contact() local 1877 if (((nhdr = sip_dup_header(chdr)) != NULL)) { in sip_dialog_add_new_contact() 1880 dialog->sip_dlg_new_local_contact = nhdr; in sip_dialog_add_new_contact()
|
/illumos-gate/usr/src/uts/common/pcmcia/sys/ |
H A D | cis_handlers.h | 198 uint32_t nhdr; /* number of copies of CIS present on device */ member
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | xlate.m4 | 1634 Elf32_Nhdr *nhdr; 1653 nhdr = dst; 1658 field_sz = S_ROUND(nhdr->n_namesz, sizeof (Elf32_Word)); 1669 field_sz = nhdr->n_descsz;
|
H A D | xlate64.m4 | 1672 Elf64_Nhdr *nhdr; 1691 nhdr = dst; 1696 field_sz = S_ROUND(nhdr->n_namesz, sizeof (Elf64_Word)); 1707 field_sz = nhdr->n_descsz;
|
/illumos-gate/usr/src/uts/common/pcmcia/cis/ |
H A D | cis_handlers.c | 1249 cs->nhdr = GET_BYTE(tp);
|