Home
last modified time | relevance | path

Searched refs:fip (Results 1 – 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/lib/libproc/common/
H A DPfdinfo.c57 for (fip = list_head(&P->fd_head); fip != NULL; in Pfd2info()
58 fip = list_next(&P->fd_head, fip)) { in Pfd2info()
63 return (fip); in Pfd2info()
70 next = fip; in Pfd2info()
71 if ((fip = calloc(1, sizeof (*fip))) == NULL) in Pfd2info()
75 return (fip); in Pfd2info()
82 fd_info_t *fip; in fdwalk_cb() local
85 if (fip == NULL) { in fdwalk_cb()
125 fd_info_t *fip; in Pfdinfo_iter() local
133 for (fip = list_tail(&P->fd_head); fip != NULL; in Pfdinfo_iter()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dfio.c263 ASSERT((fip->fi_nfiles & (fip->fi_nfiles + 1)) == 0); in fd_find()
309 ASSERT((fip->fi_nfiles & (fip->fi_nfiles + 1)) == 0); in flist_minsize()
325 ASSERT((fip->fi_nfiles & (fip->fi_nfiles + 1)) == 0); in flist_nalloc()
450 fip->fi_rlist = urp; in flist_grow()
604 if (fd == fip->fi_badfd && fip->fi_action > 0) in getf_gen()
903 ufp = fip->fi_list; in closeall()
919 kmem_free(fip->fi_list, fip->fi_nfiles * sizeof (uf_entry_t)); in closeall()
921 fip->fi_nfiles = 0; in closeall()
1428 ufp = fip->fi_list; in fcnt_add()
1453 ufp = fip->fi_list; in close_exec()
[all …]
H A Dfork.c683 uf_info_t *fip = P_FINFO(cp); in fork_fail() local
685 fcnt_add(fip, -1); in fork_fail()
697 kmem_free(fip->fi_list, fip->fi_nfiles * sizeof (uf_entry_t)); in fork_fail()
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Dfunction-ptr.c26 fip(p); in arg()
27 fip((void*)0); in arg()
28 fip(ipval); in arg()
29 fip(&ival); in arg()
30 fip(array); in arg()
74 fip(p); in glb()
75 fip((void*)0); in glb()
76 fip(ipval); in glb()
77 fip(&ival); in glb()
78 fip(array); in glb()
[all …]
H A Ddegenerate-ptr.c6 extern int fip(int *);
16 fip(array); in call()
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dpass1.c111 markbusy(fip->fe_block, fip->fe_len); in pass1()
112 bp = getfilentry(fip->fe_block, fip->fe_len); in pass1()
132 fip->fe_block, fip->fe_len, in pass1()
133 fip->fe_type, fip->fe_lcount, in pass1()
180 fip = fip->fe_nexthash; in pass1()
186 if (fip->fe_lcount != fip->fe_lseen) in pass1()
187 adjust(fip); in pass1()
190 fip = fip->fe_nexthash; in pass1()
534 bp = getfilentry(fip->fe_block, fip->fe_len); in adjust()
544 fip->fe_lcount, fip->fe_lseen); in adjust()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dfree.c44 LDAPFiltInfo *fip, *nextfip; in ldap_getfilter_free() local
51 for ( fip = flp->lfl_ilist; fip != NULL; fip = nextfip ) { in ldap_getfilter_free()
52 nextfip = fip->lfi_next; in ldap_getfilter_free()
53 NSLDAPI_FREE( fip->lfi_filter ); in ldap_getfilter_free()
54 NSLDAPI_FREE( fip->lfi_desc ); in ldap_getfilter_free()
55 NSLDAPI_FREE( fip ); in ldap_getfilter_free()
H A Dgetfilter.c104 LDAPFiltInfo *fip, *nextfip; in ldap_init_getfilter_buf() local
116 fip = NULL; in ldap_init_getfilter_buf()
158 fip = NULL; in ldap_init_getfilter_buf()
173 if ( fip == NULL ) { /* first one */ in ldap_init_getfilter_buf()
176 fip->lfi_next = nextfip; in ldap_init_getfilter_buf()
178 fip = nextfip; in ldap_init_getfilter_buf()
303 LDAPFiltInfo *fip; in ldap_getnextfilter() local
309 lfdp->lfd_curfip = fip->lfi_next; in ldap_getnextfilter()
315 lfdp->lfd_retfi.lfi_desc = fip->lfi_desc; in ldap_getnextfilter()
316 lfdp->lfd_retfi.lfi_scope = fip->lfi_scope; in ldap_getnextfilter()
[all …]
H A Dgetoption.c33 static int nsldapi_get_feature_info( LDAPAPIFeatureInfo *fip );
424 nsldapi_get_feature_info( LDAPAPIFeatureInfo *fip ) in nsldapi_get_feature_info() argument
428 if ( fip == NULL || fip->ldapaif_name == NULL ) { in nsldapi_get_feature_info()
432 if ( fip->ldapaif_info_version != LDAP_FEATURE_INFO_VERSION ) { in nsldapi_get_feature_info()
433 fip->ldapaif_info_version = LDAP_FEATURE_INFO_VERSION; in nsldapi_get_feature_info()
438 if ( strcmp( fip->ldapaif_name, in nsldapi_get_feature_info()
440 fip->ldapaif_version = in nsldapi_get_feature_info()
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c82 uf_info_t *fip; in setup_note_header() local
86 fip = P_FINFO(p); in setup_note_header()
88 mutex_enter(&fip->fi_lock); in setup_note_header()
90 UF_ENTER(ufp, fip, fd); in setup_note_header()
95 mutex_exit(&fip->fi_lock); in setup_note_header()
218 uf_info_t *fip; in write_elfnotes() local
357 fip = P_FINFO(p); in write_elfnotes()
368 mutex_enter(&fip->fi_lock); in write_elfnotes()
369 UF_ENTER(ufp, fip, fd); in write_elfnotes()
372 mutex_exit(&fip->fi_lock); in write_elfnotes()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Duser.h176 #define UF_ENTER(ufp, fip, fd) \ argument
178 uf_entry_t *_flist = (fip)->fi_list; \
180 ASSERT((fd) < (fip)->fi_nfiles); \
182 if (_flist == (fip)->fi_list) \
/illumos-gate/usr/src/common/ctf/
H A Dctf_lookup.c244 ctf_func_info(ctf_file_t *fp, ulong_t symidx, ctf_funcinfo_t *fip) in ctf_func_info() argument
281 fip->ctc_return = *dp++; in ctf_func_info()
282 fip->ctc_argc = n; in ctf_func_info()
283 fip->ctc_flags = 0; in ctf_func_info()
286 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_func_info()
287 fip->ctc_argc--; in ctf_func_info()
H A Dctf_types.c1034 ctf_func_info_by_id(ctf_file_t *fp, ctf_id_t type, ctf_funcinfo_t *fip) in ctf_func_info_by_id() argument
1048 fip->ctc_return = tp->ctt_type; in ctf_func_info_by_id()
1050 fip->ctc_argc = nargs; in ctf_func_info_by_id()
1051 fip->ctc_flags = 0; in ctf_func_info_by_id()
1059 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_func_info_by_id()
1060 fip->ctc_argc--; in ctf_func_info_by_id()
H A Dctf_create.c1990 ctf_add_function(ctf_file_t *fp, ulong_t idx, const ctf_funcinfo_t *fip, in ctf_add_function() argument
2021 if (ctf_lookup_by_id(&afp, fip->ctc_return) == NULL) in ctf_add_function()
2024 for (i = 0; i < fip->ctc_argc; i++) { in ctf_add_function()
2033 dsd->dsd_nargs = fip->ctc_argc; in ctf_add_function()
2034 if (fip->ctc_flags & CTF_FUNC_VARARG) in ctf_add_function()
2042 bcopy(argc, dsd->dsd_argc, sizeof (ctf_id_t) * fip->ctc_argc); in ctf_add_function()
2043 if (fip->ctc_flags & CTF_FUNC_VARARG) in ctf_add_function()
2044 dsd->dsd_argc[fip->ctc_argc] = 0; in ctf_add_function()
2047 dsd->dsd_tid = fip->ctc_return; in ctf_add_function()
/illumos-gate/usr/src/uts/common/syscall/
H A Dutssys.c348 uf_info_t *fip; in dofusers() local
381 fip = P_FINFO(prp); in dofusers()
382 mutex_enter(&fip->fi_lock); in dofusers()
388 for (i = 0; i < fip->fi_nfiles; i++) { in dofusers()
392 UF_ENTER(ufp, fip, i); in dofusers()
460 mutex_exit(&fip->fi_lock); in dofusers()
H A Dpoll.c2564 pollcacheclean(fpollinfo_t *fip, int fd) in pollcacheclean() argument
2568 fpip = fip; in pollcacheclean()
2764 uf_info_t *fip = P_FINFO(curproc); in pollcheckphlist() local
2768 mutex_enter(&fip->fi_lock); in pollcheckphlist()
2769 for (i = 0; i < fip->fi_nfiles; i++) { in pollcheckphlist()
2770 UF_ENTER(ufp, fip, i); in pollcheckphlist()
2784 mutex_exit(&fip->fi_lock); in pollcheckphlist()
/illumos-gate/usr/src/cmd/filesync/
H A Danal.c833 struct fileinfo *fip, *lip; in has_other_links() local
835 fip = &fp->f_info[srcdst]; in has_other_links()
838 if (fip->f_nlink < 2) in has_other_links()
860 if (lip->f_d_maj != fip->f_d_maj) in has_other_links()
862 if (lip->f_d_min != fip->f_d_min) in has_other_links()
864 if (lip->f_ino != fip->f_ino) in has_other_links()
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c625 struct file_id *fip; in volseqinit() local
1015 fip = (struct file_id *)&buf; in volseqinit()
1016 tp = &fip->fid_tag; in volseqinit()
1023 fip->fid_ver = 1; in volseqinit()
1024 fip->fid_flags = FID_DIR | FID_PARENT; in volseqinit()
1025 fip->fid_idlen = 0; in volseqinit()
1026 fip->fid_iulen = 0; in volseqinit()
1027 fip->fid_icb.lad_ext_len = sectorsize; /* rootfelen; */ in volseqinit()
1028 fip->fid_icb.lad_ext_loc = nextlogblock - 1; in volseqinit()
1029 fip->fid_icb.lad_ext_prn = 0; in volseqinit()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_dwarf.c2262 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_dwarf_function_count()
2264 fip->ctc_argc++; in ctf_dwarf_function_count()
2267 fip->ctc_argc++; in ctf_dwarf_function_count()
2269 fip->ctc_argc > 0) { in ctf_dwarf_function_count()
2270 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_dwarf_function_count()
2314 if (i == fip->ctc_argc) in ctf_dwarf_convert_fargs()
2894 ctf_funcinfo_t fip; in ctf_dwarf_duplicate_func() local
2904 if (fip.ctc_argc != 0) { in ctf_dwarf_duplicate_func()
2905 args = ctf_alloc(sizeof (ctf_id_t) * fip.ctc_argc); in ctf_dwarf_duplicate_func()
2911 ctf_free(args, sizeof (ctf_id_t) * fip.ctc_argc); in ctf_dwarf_duplicate_func()
[all …]
H A Dctf_merge.c1075 ctf_merge_add_function(ctf_merge_input_t *cmi, ctf_funcinfo_t *fip, ulong_t idx, in ctf_merge_add_function() argument
1081 sizeof (ctf_id_t) * fip->ctc_argc); in ctf_merge_add_function()
1087 fmap->cmf_rtid = fip->ctc_return; in ctf_merge_add_function()
1088 fmap->cmf_flags = fip->ctc_flags; in ctf_merge_add_function()
1089 fmap->cmf_argc = fip->ctc_argc; in ctf_merge_add_function()
1100 sizeof (ctf_id_t) * fip->ctc_argc); in ctf_merge_add_function()
/illumos-gate/usr/src/tools/smatch/src/smatch_data/
H A Dkernel.implicit_dependencies.no_structs266fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
268fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
269fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
292fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
293fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
296fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
322fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
325fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
326fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
426fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg…
[all …]
/illumos-gate/usr/src/test/util-tests/tests/ctf/
H A Dcheck-common.c105 ctf_funcinfo_t *fip, void *arg) in ctftest_lookup_function_cb() argument
112 *cfc->cfc_fip = *fip; in ctftest_lookup_function_cb()
123 ctf_funcinfo_t *fip) in ctftest_lookup_function() argument
130 cfc.cfc_fip = fip; in ctftest_lookup_function()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvnops.c4434 uf_info_t *fip; in pr_lookup_pathdir() local
4482 fip = P_FINFO(p); in pr_lookup_pathdir()
4511 idx = fip->fi_nfiles + 4; in pr_lookup_pathdir()
4569 UF_ENTER(ufp, fip, fd); in pr_lookup_pathdir()
5594 uf_info_t *fip; in pr_readdir_fdlist() local
5600 fip = P_FINFO(p); in pr_readdir_fdlist()
5679 uf_info_t *fip; in pr_readdir_pathdir() local
5697 fip = P_FINFO(p); in pr_readdir_pathdir()
5756 if (fip != NULL) { in pr_readdir_pathdir()
5758 fip = NULL; in pr_readdir_pathdir()
[all …]
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c249 struct file_info *fip) in print_dev_attrs() argument
270 if ((fip->fi_message != NULL) && in print_dev_attrs()
271 (strcmp(fip->fi_message, DAOPT_CLASS) == 0)) in print_dev_attrs()
273 else if (DEV_ERRORED(fip->fi_stat)) in print_dev_attrs()
275 else if (!DEV_ALLOCATED(fip->fi_stat)) in print_dev_attrs()
278 (void) printf("owner=%u%s", fip->fi_stat.st_uid, in print_dev_attrs()
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_isoch_xmit.c955 av1394_it_frame_info_t *fip; in av1394_it_add_frames() local
977 fip = &itp->it_frame_info[prev_full]; in av1394_it_add_frames()
978 syt = *(uint16_t *)fip->fi_ts_off; in av1394_it_add_frames()
979 syt = av1394_it_ts_syt_inc(syt, fip->fi_ncycs); in av1394_it_add_frames()

12