Home
last modified time | relevance | path

Searched refs:lfp (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_log.c113 #define LOG_FILE_HOLD(lfp) { \ argument
114 mutex_enter(&(lfp)->lf_lock); \
115 (lfp)->lf_refcnt++; \
116 mutex_exit(&(lfp)->lf_lock); \
119 #define LOG_FILE_RELE(lfp) { \ argument
120 log_file_rele(lfp); \
130 #define LOG_FILE_LOCK_TO_WRITE(lfp) { \ argument
131 mutex_enter(&(lfp)->lf_lock); \
132 (lfp)->lf_refcnt++; \
133 (lfp)->lf_writers++; \
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c55 extern FILE *lfp; /* log file for mailing changes */
209 log(lfp, cp); in server()
347 log(lfp, "%s: no password entry for uid %d \n", in sendf()
354 log(lfp, "%s: no name for group %d\n", in sendf()
361 log(lfp, "need to install: %s\n", target); in sendf()
364 log(lfp, "installing: %s\n", target); in sendf()
470 log(lfp, "need to update: %s\n", target); in sendf()
473 log(lfp, "updating: %s\n", target); in sendf()
543 log(lfp, "special \"%s\"\n", sc->sc_name); in sendf()
568 log(lfp, "out of memory, link information lost\n"); in savelink()
[all …]
H A Ddocmd.c44 FILE *lfp; /* log file for recording files updated */ variable
193 if ((lfp = fopen(Tmpfile, "w")) == NULL) { in doarrow()
221 (void) fclose(lfp); in doarrow()
222 lfp = NULL; in doarrow()
233 log(lfp, "%s: Warning: missing links\n", in doarrow()
468 log(lfp, "rdist: lost connection\n"); in lostconn()
/illumos-gate/usr/src/common/ctf/
H A Dctf_types.c723 ctf_type_cmp(ctf_file_t *lfp, ctf_id_t ltype, ctf_file_t *rfp, ctf_id_t rtype) in ctf_type_cmp() argument
734 if (lfp == rfp) in ctf_type_cmp()
737 if (CTF_TYPE_ISPARENT(ltype) && lfp->ctf_parent != NULL) in ctf_type_cmp()
738 lfp = lfp->ctf_parent; in ctf_type_cmp()
743 if (lfp < rfp) in ctf_type_cmp()
746 if (lfp > rfp) in ctf_type_cmp()
759 ctf_type_compat(ctf_file_t *lfp, ctf_id_t ltype, in ctf_type_compat() argument
767 if (ctf_type_cmp(lfp, ltype, rfp, rtype) == 0) in ctf_type_compat()
770 ltype = ctf_type_resolve(lfp, ltype); in ctf_type_compat()
771 lkind = ctf_type_kind(lfp, ltype); in ctf_type_compat()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c70 static struct lockfs *lfp; /* current lockfs status */ variable
1496 if (lfp == NULL) { in is_errorlocked()
1497 lfp = (struct lockfs *)malloc(sizeof (struct lockfs)); in is_errorlocked()
1498 if (lfp == NULL) in is_errorlocked()
1500 (void) memset((void *)lfp, 0, sizeof (struct lockfs)); in is_errorlocked()
1503 lfp->lf_comlen = LOCKFS_MAXCOMMENTLEN; in is_errorlocked()
1504 lfp->lf_comment = elock_combuf; in is_errorlocked()
1506 if (ioctl(mountfd, _FIOLFSS, lfp) == -1) in is_errorlocked()
1514 retval = LOCKFS_IS_ELOCK(lfp); in is_errorlocked()
1607 if (lfp == NULL) { in search_vfstab()
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_panic.c1217 get_lockfs_status(ufs_failure_t *f, struct lockfs *lfp) in get_lockfs_status() argument
1231 f->uf_lf_err = ufs_fiolfss(f->uf_ufsvfsp->vfs_root, lfp); in get_lockfs_status()
2094 alloc_lockfs_comment(ufs_failure_t *f, struct lockfs *lfp) in alloc_lockfs_comment() argument
2114 if ((LOCKFS_IS_ELOCK(&f->uf_lf) || !lfp->lf_comment || in alloc_lockfs_comment()
2115 lfp->lf_comlen <= 0)) { in alloc_lockfs_comment()
2119 from = lfp->lf_comment; in alloc_lockfs_comment()
2120 len = lfp->lf_comlen; in alloc_lockfs_comment()
2133 set_lockfs(ufs_failure_t *f, struct lockfs *lfp) in set_lockfs() argument
2155 alloc_lockfs_comment(f, lfp); in set_lockfs()
2158 if (!LOCKFS_IS_ELOCK(lfp)) { in set_lockfs()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_output.c1003 sctp_faddr_t *lfp; in sctp_output() local
1010 lfp = NULL; in sctp_output()
1019 lfp = sctp->sctp_lastdata; in sctp_output()
1020 ASSERT(lfp != NULL); in sctp_output()
1021 if (lfp->sf_state != SCTP_FADDRS_ALIVE) in sctp_output()
1022 lfp = sctp->sctp_current; in sctp_output()
1090 if (sacklen > 0 && (seglen + extra <= lfp->sf_cwnd - in sctp_output()
1091 lfp->sf_suna) && in sctp_output()
1092 (seglen + sacklen + extra <= lfp->sf_pmss)) { in sctp_output()
1097 pathmax = lfp->sf_cwnd - lfp->sf_suna; in sctp_output()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_parser.c334 ctf_file_t *lfp = lp->dn_ctfp; in dt_type_promote() local
340 ctf_id_t lbase = ctf_type_resolve(lfp, ltype); in dt_type_promote()
341 uint_t lkind = ctf_type_kind(lfp, lbase); in dt_type_promote()
354 lfp = DT_INT_CTFP(dtp); in dt_type_promote()
363 if (ctf_type_encoding(lfp, lbase, &le) == CTF_ERR) { in dt_type_promote()
364 yypcb->pcb_hdl->dt_ctferr = ctf_errno(lfp); in dt_type_promote()
393 *ofp = lfp; in dt_type_promote()
1054 ctf_file_t *lfp = lp->dn_ctfp; in dt_node_is_ptrcompat() local
1093 lbase = ctf_type_resolve(lfp, lp->dn_type); in dt_node_is_ptrcompat()
1094 lkind = ctf_type_kind(lfp, lbase); in dt_node_is_ptrcompat()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c9904 int lfp; local
10005 lfp = lock();
10006 if (lfp == -1) {
10030 (void) unlock(lfp);