Home
last modified time | relevance | path

Searched refs:nhdr (Results 1 – 16 of 16) sorted by relevance

/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_capture.c328 volatile struct sb_hdr nhdr, *nhdrp; in scan() local
380 nhdrp = &nhdr; in scan()
482 nhdrp = &nhdr; in scan()
697 struct sb_hdr nhdr; in cap_write() local
715 nhdr.sbh_origlen = htonl(hdrp->sbh_origlen); in cap_write()
716 nhdr.sbh_msglen = htonl(hdrp->sbh_msglen); in cap_write()
717 nhdr.sbh_totlen = htonl(hdrp->sbh_totlen); in cap_write()
718 nhdr.sbh_drops = htonl(hdrp->sbh_drops); in cap_write()
719 nhdr.sbh_timestamp.tv_sec = htonl(hdrp->sbh_timestamp.tv_sec); in cap_write()
720 nhdr.sbh_timestamp.tv_usec = htonl(hdrp->sbh_timestamp.tv_usec); in cap_write()
[all …]
/titanic_44/usr/src/psm/stand/boot/common/
H A Dreadfile.c329 Elf32_Nhdr *nhdr; /* note header */ in read_elf32() local
348 nhdr = NULL; in read_elf32()
401 phdr->p_filesz, (void *)nhdr); in read_elf32()
403 nhdr = (Elf32_Nhdr *)note_buf; in read_elf32()
404 if (xread(fd, (caddr_t)nhdr, phdr->p_filesz) != phdr->p_filesz) in read_elf32()
408 nhdr->n_namesz, nhdr->n_descsz, nhdr->n_type); in read_elf32()
417 namep = (caddr_t)(nhdr + 1); in read_elf32()
419 if (nhdr->n_namesz == strlen(ELF_NOTE_SOLARIS) + 1 && in read_elf32()
421 nhdr->n_type == ELF_NOTE_PAGESIZE_HINT) { in read_elf32()
422 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32()
[all …]
/titanic_44/usr/src/cmd/file/
H A Delf_read.c168 xlatetom_nhdr(Elf_Nhdr *nhdr) in xlatetom_nhdr() argument
172 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_namesz); in xlatetom_nhdr()
173 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_descsz); in xlatetom_nhdr()
174 r |= file_xlatetom(ELF_T_WORD, (char *)&nhdr->n_type); in xlatetom_nhdr()
311 Elf_Nhdr Nhdr, *nhdr; /* note header just read */ in process_phdr() local
321 nhdr = &Nhdr; in process_phdr()
341 if (pread64(EI->elffd, (void *)nhdr, nsz, offset) in process_phdr()
346 if (xlatetom_nhdr(nhdr) == ELF_READ_FAIL) in process_phdr()
349 ntype = nhdr->n_type; in process_phdr()
350 nmsz = nhdr->n_namesz; in process_phdr()
[all …]
/titanic_44/usr/src/cmd/mdb/intel/modules/mdb_kb/
H A Dmdb_kb.c282 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 …]
/titanic_44/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr2.c721 smbfs_node_hdr_t nhdr; in sn_hashfind() local
727 bzero(&nhdr, sizeof (nhdr)); in sn_hashfind()
728 nhdr.hdr_n_rpath = (char *)rpath; in sn_hashfind()
729 nhdr.hdr_n_rplen = rplen; in sn_hashfind()
732 np = avl_find(&mi->smi_hash_avl, &nhdr, pwhere); in sn_hashfind()
/titanic_44/usr/src/lib/libproc/common/
H A DPcore.c2419 Elf64_Nhdr nhdr; in Pfgrab_core() local
2427 if (read(P->asfd, &nhdr, sizeof (nhdr)) != sizeof (nhdr)) { in Pfgrab_core()
2442 namesz = P2ROUNDUP((off64_t)nhdr.n_namesz, (off64_t)4); in Pfgrab_core()
2451 nhdr.n_type, nhdr.n_namesz, nhdr.n_descsz); in Pfgrab_core()
2458 if (nhdr.n_type < sizeof (nhdlrs) / sizeof (nhdlrs[0])) { in Pfgrab_core()
2459 if (nhdlrs[nhdr.n_type](P, nhdr.n_descsz) < 0) { in Pfgrab_core()
2461 nhdr.n_type); in Pfgrab_core()
2470 if (nhdr.n_type == NT_PRSTATUS || in Pfgrab_core()
2471 nhdr.n_type == NT_PRPSINFO) in Pfgrab_core()
2475 (void) note_notsup(P, nhdr.n_descsz); in Pfgrab_core()
[all …]
H A DPgcore.c433 Elf64_Nhdr nhdr; in write_note() member
439 n.nhdr.n_type = type; in write_note()
440 n.nhdr.n_namesz = 5; in write_note()
441 n.nhdr.n_descsz = roundup(descsz, 4); in write_note()
448 if (gc_pwrite64(fd, desc, n.nhdr.n_descsz, *offp) != 0) in write_note()
451 *offp += n.nhdr.n_descsz; in write_note()
/titanic_44/usr/src/uts/common/exec/elf/
H A Delf_impl.h70 Nhdr nhdr; member
H A Delf.c1396 note.nhdr.n_type = type; in elfnote()
1407 note.nhdr.n_namesz = 5; in elfnote()
1408 note.nhdr.n_descsz = roundup(descsz, sizeof (Word)); in elfnote()
1417 note.nhdr.n_descsz, rlimit, credp)) in elfnote()
1420 *offsetp += note.nhdr.n_descsz; in elfnote()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Darc.c1574 arc_buf_hdr_t *nhdr; in arc_hdr_realloc() local
1580 nhdr = kmem_cache_alloc(new, KM_PUSHPAGE); in arc_hdr_realloc()
1585 bcopy(hdr, nhdr, HDR_L2ONLY_SIZE); in arc_hdr_realloc()
1588 nhdr->b_flags |= ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc()
1594 nhdr->b_l1hdr.b_state = arc_l2c_only; in arc_hdr_realloc()
1597 ASSERT3P(nhdr->b_l1hdr.b_tmp_cdata, ==, NULL); in arc_hdr_realloc()
1627 nhdr->b_flags &= ~ARC_FLAG_HAS_L1HDR; in arc_hdr_realloc()
1633 (void) buf_hash_insert(nhdr, NULL); in arc_hdr_realloc()
1645 list_insert_after(&dev->l2ad_buflist, hdr, nhdr); in arc_hdr_realloc()
1662 nhdr->b_l2hdr.b_asize, nhdr); in arc_hdr_realloc()
[all …]
/titanic_44/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcip.c155 fcph_network_hdr_t *nhdr, int type);
2824 fcph_network_hdr_t *nhdr; in fcip_data_cb() local
2876 nhdr = (fcph_network_hdr_t *)buf->ub_buffer; in fcip_data_cb()
2927 if ((fcip_wwn_compare(&nhdr->net_dest_addr, &fport->fcipp_pwwn, in fcip_data_cb()
2929 (!IS_BROADCAST_ADDR(&nhdr->net_dest_addr))) { in fcip_data_cb()
2933 IS_BROADCAST_ADDR(&nhdr->net_dest_addr)) { in fcip_data_cb()
3126 fcph_network_hdr_t *nhdr; in fcip_cache_arp_broadcast() local
3136 nhdr = (fcph_network_hdr_t *)buf->ub_buffer; in fcip_cache_arp_broadcast()
3139 frp = fcip_lookup_rtable(fptr, &nhdr->net_src_addr, FCIP_COMPARE_NWWN); in fcip_cache_arp_broadcast()
3148 bcopy((void *)&nhdr->net_src_addr, (void *)&map.map_pwwn, in fcip_cache_arp_broadcast()
[all …]
/titanic_44/usr/src/lib/libsip/common/
H A Dsip_dialog.c1863 sip_header_t nhdr = NULL; in sip_dialog_add_new_contact() local
1879 if (((nhdr = sip_dup_header(chdr)) != NULL)) { in sip_dialog_add_new_contact()
1882 dialog->sip_dlg_new_local_contact = nhdr; in sip_dialog_add_new_contact()
/titanic_44/usr/src/uts/common/pcmcia/sys/
H A Dcis_handlers.h200 uint32_t nhdr; /* number of copies of CIS present on device */ member
/titanic_44/usr/src/cmd/sgs/libelf/common/
H A Dxlate.m41634 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 Dxlate64.m41672 Elf64_Nhdr *nhdr;
1691 nhdr = dst;
1696 field_sz = S_ROUND(nhdr->n_namesz, sizeof (Elf64_Word));
1707 field_sz = nhdr->n_descsz;
/titanic_44/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c1251 cs->nhdr = GET_BYTE(tp);