Home
last modified time | relevance | path

Searched refs:ip (Results 26 – 50 of 765) sorted by relevance

12345678910>>...31

/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_xattr.c65 struct inode *ip, *sdp; in ufs_xattr_getattrdir() local
68 ip = VTOI(dvp); in ufs_xattr_getattrdir()
70 if (ip && ((ip->i_oeftflag) != 0)) { in ufs_xattr_getattrdir()
119 struct vnode *datavp = ITOV(ip); in ufs_unhook_shadow()
127 if (vn_is_readonly(ITOV(ip))) in ufs_unhook_shadow()
133 hno = INOHASH(ip->i_number); in ufs_unhook_shadow()
161 ip->i_oeftflag = 0; in ufs_unhook_shadow()
162 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_unhook_shadow()
163 ip->i_flag |= ICHG; in ufs_unhook_shadow()
164 ip->i_seq++; in ufs_unhook_shadow()
[all …]
H A Dufs_dir.c2112 *ipp = ip; in ufs_dirmakeinode()
2128 ITOV(ip)->v_rdev = ip->i_rdev = d; in ufs_dirmakeinode()
2208 ip->i_dquot = getinoquota(ip); in ufs_dirmakeinode()
2226 err = ufs_si_inherit(ip, tdp, ip->i_mode, cr); in ufs_dirmakeinode()
2290 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_dirmakeinode()
2299 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_dirmakeinode()
2338 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_dirmakedirect()
2455 ip = NULL; in ufs_dirremove()
2683 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_dirremove()
2752 if (ip) in ufs_dirremove()
[all …]
H A Dufs_alloc.c369 ip = *ipp; in ufs_ialloc()
379 if (ip->i_mode || (ip->i_nlink > 0)) { in ufs_ialloc()
404 if (ip->i_size || ip->i_blocks) { in ufs_ialloc()
544 fs = ip->i_fs; in blkpref()
684 ip->i_dev, bno, ip->i_number, fs->fs_fsmnt); in free()
781 if (ip->i_number == ino && ip->i_mode != 0) { in ufs_ifree()
785 ip->i_mode, mode, (int)ip->i_number, fs->fs_fsmnt); in ufs_ifree()
852 fs = ip->i_fs; in hashalloc()
1575 ip = VTOI(vp); in ufs_allocsp()
1671 ufs_trans_trunc_resv(ip, ip->i_size + in ufs_allocsp()
[all …]
H A Dufs_filio.c115 ip = VTOI(vp); in ufs_fioio()
116 fs = ip->i_fs; in ufs_fioio()
257 ip = VTOI(vp); in ufs_fiosatime()
259 ITIMES_NOLOCK(ip); in ufs_fiosatime()
265 ip->i_atime = tv; in ufs_fiosatime()
267 ip->i_flag |= IMODACC; in ufs_fiosatime()
336 ip = VTOI(vp); in ufs_fiosdio()
337 ufsvfsp = ip->i_ufsvfs; in ufs_fiosdio()
375 fs = ip->i_fs; in ufs_fiosdio()
643 isz = ip->i_size; in ufs_fio_holey()
[all …]
H A Dquota_ufs.c72 getinoquota(struct inode *ip) in getinoquota() argument
99 ASSERT(ip->i_mode); in getinoquota()
151 dqp = ip->i_dquot; in chkdq()
163 if ((ip->i_mode & IFMT) == IFSHAD || (ip->i_mode & IFMT) == IFATTRDIR) { in chkdq()
309 if (ip->i_uid == 0) in chkdq()
396 (int)ip->i_uid, (int)ip->i_number, in chkdq()
397 ip->i_fs->fs_fsmnt); in chkdq()
406 (int)ip->i_uid, (int)ip->i_number, in chkdq()
407 ip->i_fs->fs_fsmnt); in chkdq()
450 if (change == -1 && ip) { in chkiq()
[all …]
H A Dufs_acl.c132 err = ufs_si_free(ip->i_ufs_acl, ITOV(ip)->v_vfsp, cr); in ufs_si_store()
136 ip->i_mode = (ip->i_smode & ~0777) | in ufs_si_store()
140 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_si_store()
297 ASSERT(ip->i_number != ip->i_shadow); in ufs_si_store()
329 ip->i_mode = (ip->i_mode & ~070) | in ufs_si_store()
336 ip->i_seq++; in ufs_si_store()
435 ASSERT(ip->i_shadow && ip->i_ufs_acl == NULL); in ufs_si_load()
441 if (ip->i_shadow == ip->i_number) in ufs_si_load()
444 maxino = (ino_t)(ITOF(ip)->fs_ncg * ITOF(ip)->fs_ipg); in ufs_si_load()
445 if (ip->i_shadow < UFSROOTINO || ip->i_shadow > maxino) in ufs_si_load()
[all …]
H A Dufs_subr.c415 ufsvfsp = ip->i_ufsvfs; in ufs_sync_inode()
446 TRANS_IUPDAT(ip, 0); in ufs_sync_inode()
526 ufs_iupdat(ip, 1); in ufs_syncip()
586 ufsvfsp = ip->i_ufsvfs; in ufs_sync_indir()
600 blkflush(ip->i_dev, (daddr_t)fsbtodb(fs, ip->i_ib[0])); in ufs_sync_indir()
799 sum = howmany(ip->i_fs->fs_cssize, ip->i_fs->fs_fsize); in ufs_badblock()
809 (bn >= cgsblock(ip->i_fs, c) && bn < cgdmin(ip->i_fs, c)+sum) || in ufs_badblock()
835 struct inode *ip; in ufs_icheck() local
845 ip = ip->i_forw) { in ufs_icheck()
854 if ((ip->i_nlink <= 0) && (ip->i_flag & IREF)) in ufs_icheck()
[all …]
H A Dufs_directio.c271 bp->b_edev = ip->i_dev; in directio_start()
365 if (ip->i_mapcnt) in ufs_directio_write()
389 size = ip->i_size; in ufs_directio_write()
395 if (((ip->i_mode & IFMT) != IFREG) || ip->i_ufsvfs->vfs_qinod == ip) in ufs_directio_write()
458 fs = ip->i_fs; in ufs_directio_write()
574 vp = ITOV(ip); in ufs_directio_write()
742 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_directio_write()
828 if (ip->i_mapcnt) in ufs_directio_read()
856 fs = ip->i_fs; in ufs_directio_read()
861 size = ip->i_size; in ufs_directio_read()
[all …]
H A Dquotacalls.c167 if (ufsvfsp != (struct ufsvfs *)arg || ip == ip->i_ufsvfs->vfs_qinod) { in opendq_scan_inode()
178 if (ip->i_mode && (ip->i_mode & IFMT) != IFSHAD && in opendq_scan_inode()
179 (ip->i_mode & IFMT) != IFATTRDIR && ip->i_dquot == NULL) { in opendq_scan_inode()
180 ip->i_dquot = getinoquota(ip); in opendq_scan_inode()
182 rw_exit(&ip->i_contents); in opendq_scan_inode()
340 ip->i_dquot = NULL; in closedq_scan_inode()
458 if (ip->i_mode && (ip->i_mode & IFMT) != IFSHAD && in setquota_scan_inode()
459 (ip->i_mode & IFMT) != IFATTRDIR && ip->i_uid == sqdp->sqd_uid) { in setquota_scan_inode()
465 ip->i_dquot = getinoquota(ip); in setquota_scan_inode()
472 dqput(ip->i_dquot); in setquota_scan_inode()
[all …]
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c484 struct ipart ip; local
549 ip.bootid = 0;
550 ip.beghead = ip.begsect = ip.begcyl = 0xff;
551 ip.endhead = ip.endsect = ip.endcyl = 0xff;
553 ip.relsect = relsec;
554 ip.numsect = numsec;
684 struct ipart ip; local
777 ip.bootid = 0;
778 ip.beghead = ip.begsect = ip.begcyl = 0xff;
779 ip.endhead = ip.endsect = ip.endcyl = 0xff;
[all …]
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c73 struct ip *ip; in myri10ge_lro_flush() local
83 ip = lro->ip; in myri10ge_lro_flush()
85 ip->ip_sum = 0; in myri10ge_lro_flush()
86 ip->ip_sum = 0xffff ^ in myri10ge_lro_flush()
87 myri10ge_csum_generic((uint16_t *)ip, sizeof (*ip)); in myri10ge_lro_flush()
135 struct ip *ip; in myri10ge_lro_rx() local
147 ip = (struct ip *)(void *)(eh + 1); in myri10ge_lro_rx()
152 if ((ip->ip_hl << 2) != sizeof (*ip)) in myri10ge_lro_rx()
160 tmp_csum = myri10ge_csum_generic((uint16_t *)ip, sizeof (*ip)); in myri10ge_lro_rx()
189 ip_len = ntohs(ip->ip_len); in myri10ge_lro_rx()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Ddbm.c150 assert(ip >= 0); in dbm_page_get()
158 res.arch = pages[ip].arch ? dbm_get(pages[ip].arch) : NULL; in dbm_page_get()
265 ip = npages; in page_bytitle()
267 ip = 0; in page_bytitle()
280 ip++; in page_bytitle()
283 ip++; in page_bytitle()
298 res.page = ip; in page_bytitle()
325 ip = 0; in page_byarch()
331 for ( ; ip < npages; ip++) in page_byarch()
446 ip = arg_ip; in macro_bypage()
[all …]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dexplain.c724 inst_t *ip; in get_fmri() local
760 inst_t *ip; in process_reqall() local
803 ip = uu_list_next(sp->instances, ip)) { in process_reqall()
811 ip = uu_list_next(sp->instances, ip)) { in process_reqall()
830 inst_t *ip; in process_reqany() local
864 ip = uu_list_next(sp->instances, ip)) { in process_reqany()
910 ip = uu_list_next(sp->instances, ip)) { in process_reqany()
971 ip = uu_list_next(sp->instances, ip)) { in process_optall()
1030 ip = uu_list_next(sp->instances, ip)) { in process_excall()
1328 " svc:/%s:%s\n"), ip->svcname, ip->instname); in determine_impact()
[all …]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptraverse.c106 est(ip); in mark()
137 est(ip); in active_mark()
203 est(ip); in estshad()
252 dsrch(ip->di_db[i], (ulong_t)dblksize(sblock, ip, i), in add()
269 est(ip); in add()
334 (ip->di_mode & IFMT) != IFATTRDIR) || ip->di_nlink < 2) { in dirdump()
340 lf_dump(ip); in dirdump()
363 *ip = getino((ino_t)(unsigned)((*ip)->di_shadow)); in hasshortmeta()
414 ip = getino((ino_t)(unsigned)(ip->di_shadow)); in lf_dump()
422 ip = getino(ino); in lf_dump()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dutil.c145 char *ip, *op; local
153 for (ip = ibp, olen = 1; *ip != '\0'; ip++, olen++)
155 if (SM_MM_QUOTE(*ip))
195 for (ip = ibp, op = obp, bufused = 0; *ip != '\0'; ip++)
197 if (SM_MM_QUOTE(*ip))
203 op[bufused++] = *ip;
228 char *ip, *op; local
234 for (ip = ibp, op = obp; *ip != '\0'; ip++)
236 if ((*ip & 0377) == METAQUOTE && !quoted)
243 *op++ = *ip;
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfcpci.c237 for (ip = rp->head; ip != NULL; ip = np) { in pci_fc_ops_free_handle()
401 for (ip = rp->head; ip != NULL; ip = ip->next) { in pfc_dma_sync()
408 ((char *)ip->fc_dma_virt + ip->fc_dma_len))) in pfc_dma_sync()
455 for (ip = rp->head; ip != NULL; ip = ip->next) { in pfc_dma_map_out()
483 fc_physio_free(&ip->fc_dma_bp, ip->fc_dma_virt, ip->fc_dma_len); in pfc_dma_map_out()
501 for (ip = rp->head; ip != NULL; ip = ip->next) in next_dma_resource()
518 ip->fc_dma_virt, ip->fc_dma_len); in pfc_dma_cleanup()
533 fc_physio_free(&ip->fc_dma_bp, ip->fc_dma_virt, ip->fc_dma_len); in pfc_dma_cleanup()
627 for (ip = rp->head; ip != NULL; ip = ip->next) { in pfc_map_out()
697 for (ip = rp->head; ip != NULL; ip = ip->next) { in pfc_register_fetch()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dnic.c370 ip->ident = 0; in build_ip_hdr()
372 ip->ttl = ttl; in build_ip_hdr()
374 ip->chksum = 0; in build_ip_hdr()
685 memset(&ip, 0, sizeof(ip)); in dhcp()
704 sizeof(ip), &ip); in dhcp()
724 sizeof(ip), &ip); in dhcp()
780 if (!ip || (ip->protocol == IP_IGMP) || in process_igmp()
924 ip = 0; in await_reply()
928 if ((ip->verhdrlen < 0x45) || (ip->verhdrlen > 0x4F)) in await_reply()
956 if (ip && (ip->protocol == IP_UDP) && in await_reply()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_isoch.c83 mutex_enter(&ip->i_mutex); in av1394_isoch_attach()
85 mutex_exit(&ip->i_mutex); in av1394_isoch_attach()
92 mutex_exit(&ip->i_mutex); in av1394_isoch_attach()
104 mutex_exit(&ip->i_mutex); in av1394_isoch_attach()
128 icp = ip->i_ic[i]; in av1394_isoch_cpr_suspend()
137 mutex_exit(&ip->i_mutex); in av1394_isoch_cpr_suspend()
342 icp = ip->i_ic[i]; in av1394_isoch_find_seg()
533 return (ip->i_ic[num]); in av1394_ioctl_isoch_handle2ic()
594 icp = ip->i_ic[num]; in av1394_ioctl_recv()
630 icp = ip->i_ic[num]; in av1394_ioctl_xmit()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dproto.c3495 while (*ip == ' ' || *ip == '\t') ip++;
3496 if (*ip == 'l' && *++ip == 'i' && *++ip == 'n' && *++ip == 'e')
3517 while (*ip == ' ' || *ip == '\t') ip++;
3549 …if (*ip == 'i' && *++ip == 'n' && *++ip == 'c' && *++ip == 'l' && *++ip == 'u' && *++ip == 'd' && …
3552 … (*ip++ == '<' && *ip++ == 's' && *ip++ == 't' && *ip++ == 'd' && *ip++ == 'a' && *ip++ == 'r' && …
3567 …else if (*ip == 'd' && *++ip == 'e' && *++ ip == 'f' && *++ip == 'i' && *++ip == 'n' && *++ip == '…
3570 …if (*ip == 'e' && *++ip == 'x' && *++ ip == 't' && *++ip == 'e' && *++ip == 'r' && *++ip == 'n' &&…
3590 …else if (*ip == 'u' && *++ip == 'n' && *++ ip == 'd' && *++ip == 'e' && *++ip == 'f' && (*++ip == …
3593 …f (*ip == 'e' && *++ip == 'x' && *++ ip == 't' && *++ip == 'e' && *++ip == 'r' && *++ip == 'n' && …
4808 if (*ip == '%' && (ip == proto->ip + 1 || *(ip - 2) == '\n'))
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Deval.c660 { struct fileinfo *ip; in note_info() local
665 ip->f_ino = sp->st_ino; in note_info()
685 which, fp->f_name, ip->f_modtime, ip->f_modns, in note_info()
686 ip->f_numacls); in note_info()
716 np->f_uid = ip->f_uid; in do_update()
717 np->f_gid = ip->f_gid; in do_update()
814 { struct fileinfo *ip; in check_inum() local
822 if (ip->f_ino == fp->f_s_inum && ip->f_d_maj == fp->f_s_maj) in check_inum()
832 ip->f_d_maj, ip->f_d_min, ip->f_ino); in check_inum()
835 if (ip->f_ino == fp->f_d_inum && ip->f_d_maj == fp->f_d_maj) in check_inum()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd1.c195 int *ip; in from() local
197 for (ip = msgvec; *ip != 0; ip++) { in from()
198 printhead(*ip); in from()
439 int *ip; in type1() local
460 *ip && ip-msgvec < msgCount; ip++) in type1()
477 for (ip = msgvec; *ip && ip-msgvec < msgCount; ip++) { in type1()
478 mesg = *ip; in type1()
557 for (ip = msgvec; *ip && ip-msgvec < msgCount; ip++) { in top()
558 mesg = *ip; in top()
597 for (ip = msgvec; *ip != 0; ip++) { in stouch()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c226 struct ip *ip; in check_reply() local
291 ip = (struct ip *)buf; in check_reply()
292 hlen = ip->ip_hl << 2; in check_reply()
306 if (ip->ip_p == 0) { in check_reply()
318 ip = &icp->icmp_ip; in check_reply()
319 hlen1 = ip->ip_hl << 2; in check_reply()
518 ip = &icp->icmp_ip; in check_reply()
716 ip = &icp->icmp_ip; in check_reply()
717 hlen1 = ip->ip_hl << 2; in check_reply()
750 ip = &icp->icmp_ip; in check_reply()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetopt.c130 char *ip; /* ptr into optstring, traverses every char */ in parselong() local
134 cp = ip = (char *)optstring; in parselong()
136 if (*ip != '(' && *++ip == '\0') in parselong()
138 if (*ip == ':' && *++ip == '\0') in parselong()
140 while (*ip == '(') { in parselong()
141 if (*++ip == '\0') in parselong()
145 while (*ip != ')' && *ip != '\0' && *op != '\0') in parselong()
146 match = (*ip++ == *op++ && match); in parselong()
147 if (match && *ip == ')' && in parselong()
157 if (*ip == ')' && *++ip == '\0') in parselong()
[all …]
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_dir.c649 ip = NULL; in ud_dirremove()
673 if (ip == NULL) { in ud_dirremove()
720 if (dp == ip || ITOV(ip) == cdir) { in ud_dirremove()
838 ip->i_nlink--; in ud_dirremove()
856 if (ip) { in ud_dirremove()
1135 ip = target; in ud_dircheckpath()
1208 ip = NULL; in ud_dircheckpath()
1211 ip = tip; in ud_dircheckpath()
1218 if (ip) { in ud_dircheckpath()
1268 *ipp = ip; in ud_dirmakeinode()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dipft_td.c98 ip_t *ip = (ip_t *)&pkt; local
127 (void) inet_aton(src, &ip->ip_src);
133 (void) inet_aton(src, &ip->ip_dst);
141 ip->ip_len = sizeof(ip_t);
142 IP_HL_A(ip, sizeof(ip_t));
145 ip->ip_p = getproto(s);
147 switch (ip->ip_p)
152 ip->ip_len += atoi(s);
153 if (ip->ip_p == IPPROTO_TCP)
155 else if (ip->ip_p == IPPROTO_UDP)
[all …]

12345678910>>...31