Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/freebsd-12-stable/contrib/amd/amd/
Dmap.c101 static void exported_ap_free(am_node *mp);
102 static void remove_am(am_node *mp);
149 am_node *mp; in path_to_exported_ap() local
151 mp = get_first_exported_ap(&index); in path_to_exported_ap()
152 while (mp != NULL) { in path_to_exported_ap()
153 if (STREQ(mp->am_path, path)) in path_to_exported_ap()
155 mp = get_next_exported_ap(&index); in path_to_exported_ap()
157 return mp; in path_to_exported_ap()
186 get_ap_child(am_node *mp, char *fname) in get_ap_child() argument
189 mntfs *mf = mp->am_al->al_mnt; in get_ap_child()
[all …]
Dautil.c157 forcibly_timeout_mp(am_node *mp) in forcibly_timeout_mp() argument
159 mntfs *mf = mp->am_al->al_mnt; in forcibly_timeout_mp()
163 if (mf && ((mp->am_flags & AMF_ROOT) || in forcibly_timeout_mp()
171 … plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path); in forcibly_timeout_mp()
173 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path); in forcibly_timeout_mp()
174 notify_child(mp, AMQ_UMNT_FAILED, EBUSY, 0); in forcibly_timeout_mp()
177 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path); in forcibly_timeout_mp()
178 mp->am_flags &= ~AMF_NOTIMEOUT; in forcibly_timeout_mp()
179 mp->am_ttl = clocktime(NULL); in forcibly_timeout_mp()
185 clocktime(&mp->am_parent->am_fattr.na_mtime); in forcibly_timeout_mp()
[all …]
Damfs_generic.c54 #define IN_PROGRESS(cp) ((cp)->mp->am_al->al_mnt->mf_flags & MFF_MOUNTING)
75 am_node *mp; /* Node we are trying to mount */ member
86 static am_node *amfs_lookup_node(am_node *mp, char *fname, int *error_return);
94 static char *amfs_parse_defaults(am_node *mp, mntfs *mf, char *def_opts);
101 amfs_lookup_node(am_node *mp, char *fname, int *error_return) in amfs_lookup_node() argument
117 … if (mp->am_al == NULL || mp->am_al->al_mnt == NULL || mp->am_al->al_mnt->mf_fsflags & FS_DIRECT) { in amfs_lookup_node()
120 dlog("%s/%s mount ignored - going down", mp->am_path, fname); in amfs_lookup_node()
130 return mp; /* "." is the current node */ in amfs_lookup_node()
132 if (mp->am_parent) { in amfs_lookup_node()
133 dlog(".. in %s gives %s", mp->am_path, mp->am_parent->am_path); in amfs_lookup_node()
[all …]
Dnfs_subr.c93 static void count_map_entries(const am_node *mp, u_int *out_blocks, u_int *out_bfree, u_int *out_ba…
97 do_readlink(am_node *mp, int *error_return) in do_readlink() argument
106 if (mp->am_al->al_mnt->mf_ops->readlink) { in do_readlink()
108 mp = (*mp->am_al->al_mnt->mf_ops->readlink) (mp, &retry); in do_readlink()
109 if (mp == NULL) { in do_readlink()
116 if (mp->am_link) { in do_readlink()
117 ln = mp->am_link; in do_readlink()
119 ln = mp->am_al->al_mnt->mf_mount; in do_readlink()
139 am_node *mp; in nfsproc_getattr_2_svc() local
146 mp = fh_to_mp3(argp, &retry, VLOOK_CREATE); in nfsproc_getattr_2_svc()
[all …]
/freebsd-12-stable/lib/libc/db/mpool/
Dmpool.c68 MPOOL *mp; in mpool_open() local
85 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL) in mpool_open()
87 TAILQ_INIT(&mp->lqh); in mpool_open()
89 TAILQ_INIT(&mp->hqh[entry]); in mpool_open()
90 mp->maxcache = maxcache; in mpool_open()
91 mp->npages = sb.st_size / pagesize; in mpool_open()
92 mp->pagesize = pagesize; in mpool_open()
93 mp->fd = fd; in mpool_open()
94 return (mp); in mpool_open()
102 mpool_filter(MPOOL *mp, void (*pgin) (void *, pgno_t, void *), in mpool_filter() argument
[all …]
/freebsd-12-stable/usr.sbin/ppp/
Dmp.c138 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) in mp_ReadHeader() argument
140 if (mp->local_is12bit) { in mp_ReadHeader()
196 struct mp *mp = (struct mp *)v; in mp_UpDown() local
199 percent = MAX(mp->link.stats.total.in.OctetsPerSecond, in mp_UpDown()
200 mp->link.stats.total.out.OctetsPerSecond) * 800 / in mp_UpDown()
201 mp->bundle->bandwidth; in mp_UpDown()
202 if (percent >= mp->cfg.autoload.max) { in mp_UpDown()
204 bundle_AutoAdjust(mp->bundle, percent, AUTO_UP); in mp_UpDown()
205 } else if (percent <= mp->cfg.autoload.min) { in mp_UpDown()
207 bundle_AutoAdjust(mp->bundle, percent, AUTO_DOWN); in mp_UpDown()
[all …]
/freebsd-12-stable/sys/fs/nullfs/
Dnull_vfsops.c75 nullfs_mount(struct mount *mp) in nullfs_mount() argument
86 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); in nullfs_mount()
88 if (mp->mnt_flag & MNT_ROOTFS) in nullfs_mount()
94 if (mp->mnt_flag & MNT_UPDATE) { in nullfs_mount()
98 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in nullfs_mount()
107 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in nullfs_mount()
114 if (mp->mnt_vnodecovered->v_op == &null_vnodeops && in nullfs_mount()
115 VOP_ISLOCKED(mp->mnt_vnodecovered) == LK_EXCLUSIVE) { in nullfs_mount()
116 VOP_UNLOCK(mp->mnt_vnodecovered, 0); in nullfs_mount()
134 vn_lock(mp->mnt_vnodecovered, LK_EXCLUSIVE | LK_RETRY); in nullfs_mount()
[all …]
/freebsd-12-stable/sys/fs/tmpfs/
Dtmpfs_vfsops.c108 tmpfs_update_mtime(struct mount *mp, bool lazy) in tmpfs_update_mtime() argument
113 MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { in tmpfs_update_mtime()
149 tmpfs_check_rw_maps_cb(struct mount *mp __unused, vm_map_t map __unused, in tmpfs_check_rw_maps_cb()
164 tmpfs_revoke_rw_maps_cb(struct mount *mp __unused, vm_map_t map, in tmpfs_revoke_rw_maps_cb()
183 tmpfs_all_rw_maps(struct mount *mp, bool (*cb)(struct mount *mp, vm_map_t, in tmpfs_all_rw_maps() argument
246 if (vp->v_mount != mp) { in tmpfs_all_rw_maps()
251 terminate = cb(mp, map, entry, cb_arg); in tmpfs_all_rw_maps()
270 tmpfs_check_rw_maps(struct mount *mp) in tmpfs_check_rw_maps() argument
275 tmpfs_all_rw_maps(mp, tmpfs_check_rw_maps_cb, &ca); in tmpfs_check_rw_maps()
280 tmpfs_rw_to_ro(struct mount *mp) in tmpfs_rw_to_ro() argument
[all …]
/freebsd-12-stable/sys/kern/
Dvfs_mount.c119 struct mount *mp; in mount_init() local
121 mp = (struct mount *)mem; in mount_init()
122 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); in mount_init()
123 mtx_init(&mp->mnt_listmtx, "struct mount vlist mtx", NULL, MTX_DEF); in mount_init()
124 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); in mount_init()
131 struct mount *mp; in mount_fini() local
133 mp = (struct mount *)mem; in mount_fini()
134 lockdestroy(&mp->mnt_explock); in mount_fini()
135 mtx_destroy(&mp->mnt_listmtx); in mount_fini()
136 mtx_destroy(&mp->mnt_mtx); in mount_fini()
[all …]
Dvfs_export.c76 static int vfs_hang_addrlist(struct mount *mp, struct netexport *nep,
105 vfs_hang_addrlist(struct mount *mp, struct netexport *nep, in vfs_hang_addrlist() argument
131 vfs_mount_error(mp, "ex_anon.cr_version: %d != %d", in vfs_hang_addrlist()
137 if (mp->mnt_flag & MNT_DEFEXPORTED) { in vfs_hang_addrlist()
138 vfs_mount_error(mp, in vfs_hang_addrlist()
139 "MNT_DEFEXPORTED already set for mount %p", mp); in vfs_hang_addrlist()
153 MNT_ILOCK(mp); in vfs_hang_addrlist()
154 mp->mnt_flag |= MNT_DEFEXPORTED; in vfs_hang_addrlist()
155 MNT_IUNLOCK(mp); in vfs_hang_addrlist()
161 vfs_mount_error(mp, "ex_addrlen %d is greater than %d", in vfs_hang_addrlist()
[all …]
/freebsd-12-stable/sys/ufs/ffs/
Dffs_vfsops.c90 static int ffs_sync_lazy(struct mount *mp);
150 ffs_mount(struct mount *mp) in ffs_mount() argument
164 if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) in ffs_mount()
178 vfs_deleteopt(mp->mnt_optnew, "groupquota"); in ffs_mount()
179 vfs_deleteopt(mp->mnt_optnew, "userquota"); in ffs_mount()
181 fspec = vfs_getopts(mp->mnt_optnew, "from", &error); in ffs_mount()
186 if (vfs_getopt(mp->mnt_optnew, "untrusted", NULL, NULL) == 0) in ffs_mount()
189 if (vfs_getopt(mp->mnt_optnew, "acls", NULL, NULL) == 0) in ffs_mount()
192 if (vfs_getopt(mp->mnt_optnew, "snapshot", NULL, NULL) == 0) { in ffs_mount()
198 vfs_deleteopt(mp->mnt_optnew, "snapshot"); in ffs_mount()
[all …]
Dffs_suspend.c74 ffs_susp_suspended(struct mount *mp) in ffs_susp_suspended() argument
80 ump = VFSTOUFS(mp); in ffs_susp_suspended()
99 struct mount *mp; in ffs_susp_rdwr() local
109 error = devfs_get_cdevpriv((void **)&mp); in ffs_susp_rdwr()
115 ump = VFSTOUFS(mp); in ffs_susp_rdwr()
119 if (ffs_susp_suspended(mp) == 0) { in ffs_susp_rdwr()
180 ffs_susp_suspend(struct mount *mp) in ffs_susp_suspend() argument
187 if (!ffs_own_mount(mp)) in ffs_susp_suspend()
189 if (ffs_susp_suspended(mp)) in ffs_susp_suspend()
192 ump = VFSTOUFS(mp); in ffs_susp_suspend()
[all …]
/freebsd-12-stable/contrib/ntp/libntp/lib/isc/pthreads/include/isc/
Dmutex.h70 #define isc_mutex_init(mp) \ argument
71 isc_mutex_init_profile((mp), __FILE__, __LINE__)
74 #define isc_mutex_init(mp) \ argument
75 isc_mutex_init_errcheck((mp))
77 #define isc_mutex_init(mp) \ argument
78 isc__mutex_init((mp), __FILE__, __LINE__)
79 isc_result_t isc__mutex_init(isc_mutex_t *mp, const char *file, unsigned int line);
84 #define isc_mutex_lock(mp) \ argument
85 isc_mutex_lock_profile((mp), __FILE__, __LINE__)
87 #define isc_mutex_lock(mp) \ argument
[all …]
/freebsd-12-stable/sys/fs/unionfs/
Dunion_vfsops.c75 unionfs_domount(struct mount *mp) in unionfs_domount() argument
97 UNIONFSDEBUG("unionfs_mount(mp = %p)\n", (void *)mp); in unionfs_domount()
110 if (mp->mnt_flag & MNT_ROOTFS) { in unionfs_domount()
111 vfs_mount_error(mp, "Cannot union mount root filesystem"); in unionfs_domount()
118 if (mp->mnt_flag & MNT_UPDATE) { in unionfs_domount()
119 vfs_mount_error(mp, "unionfs does not support mount update"); in unionfs_domount()
126 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in unionfs_domount()
128 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, in unionfs_domount()
131 vfs_mount_error(mp, "Invalid target"); in unionfs_domount()
134 if (vfs_getopt(mp->mnt_optnew, "below", NULL, NULL) == 0) in unionfs_domount()
[all …]
/freebsd-12-stable/libexec/talkd/
Dprocess.c65 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) in process_request() argument
71 rp->type = mp->type; in process_request()
73 if (mp->vers != TALK_VERSION) { in process_request()
74 syslog(LOG_WARNING, "bad protocol version %d", mp->vers); in process_request()
78 mp->id_num = ntohl(mp->id_num); in process_request()
79 mp->addr.sa_family = ntohs(mp->addr.sa_family); in process_request()
80 if (mp->addr.sa_family != AF_INET) { in process_request()
82 mp->addr.sa_family); in process_request()
86 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in process_request()
87 if (mp->ctl_addr.sa_family != AF_INET) { in process_request()
[all …]
/freebsd-12-stable/stand/libsa/
Dzalloc.c91 znalloc(MemPool *mp, uintptr_t bytes, size_t align) in znalloc() argument
111 if (bytes > mp->mp_Size - mp->mp_Used) in znalloc()
114 for (pmn = &mp->mp_First; (mn = *pmn) != NULL; pmn = &mn->mr_Next) { in znalloc()
159 mp->mp_Used += bytes; in znalloc()
175 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument
193 if ((char *)ptr < (char *)mp->mp_Base || in zfree()
194 (char *)ptr + bytes > (char *)mp->mp_End || in zfree()
201 mp->mp_Used -= bytes; in zfree()
203 for (pmn = &mp->mp_First; (mn = *pmn) != NULL; pmn = &mn->mr_Next) { in zfree()
238 if (pmn != &mp->mp_First) { in zfree()
[all …]
/freebsd-12-stable/usr.bin/mail/
Dquit.c75 struct message *mp; in quit() local
146 for (mp = &message[0]; mp < &message[msgCount]; mp++) { in quit()
147 if (mp->m_flag & MNEW) { in quit()
148 mp->m_flag &= ~MNEW; in quit()
149 mp->m_flag |= MSTATUS; in quit()
151 if (mp->m_flag & MSTATUS) in quit()
153 if ((mp->m_flag & MTOUCH) == 0) in quit()
154 mp->m_flag |= MPRESERVE; in quit()
155 if ((mp->m_flag & nohold) == 0) in quit()
156 mp->m_flag |= holdbit; in quit()
[all …]
Dcmd1.c61 struct message *mp; in headers() local
69 mp = &message[screen * size]; in headers()
70 if (mp >= &message[msgCount]) in headers()
71 mp = &message[msgCount - size]; in headers()
72 if (mp < &message[0]) in headers()
73 mp = &message[0]; in headers()
75 mesg = mp - &message[0]; in headers()
77 dot = mp; in headers()
78 for (; mp < &message[msgCount]; mp++) { in headers()
80 if (mp->m_flag & MDELETED) in headers()
[all …]
/freebsd-12-stable/sys/ufs/ufs/
Dufs_vfsops.c71 ufs_root(mp, flags, vpp) in ufs_root() argument
72 struct mount *mp; in ufs_root()
79 error = VFS_VGET(mp, (ino_t)UFS_ROOTINO, flags, &nvp);
90 ufs_quotactl(mp, cmds, id, arg) in ufs_quotactl() argument
91 struct mount *mp; in ufs_quotactl()
99 vfs_unbusy(mp);
122 vfs_unbusy(mp);
128 vfs_unbusy(mp);
134 error = quotaon(td, mp, type, arg);
138 vfs_ref(mp);
[all …]
/freebsd-12-stable/sys/fs/nfsclient/
Dnfs_clcomsubs.c62 struct mbuf *mp, *mp2; in nfsm_uiombuf() local
74 mp = mp2 = nd->nd_mb; in nfsm_uiombuf()
82 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
85 NFSMCLGET(mp, M_WAITOK); in nfsm_uiombuf()
87 NFSMGET(mp); in nfsm_uiombuf()
88 mbuf_setlen(mp, 0); in nfsm_uiombuf()
89 mbuf_setnext(mp2, mp); in nfsm_uiombuf()
90 mp2 = mp; in nfsm_uiombuf()
91 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
98 (uiocp, NFSMTOD(mp, caddr_t) + mbuf_len(mp), in nfsm_uiombuf()
[all …]
/freebsd-12-stable/contrib/ntp/libntp/lib/isc/pthreads/
Dmutex.c99 isc_mutex_init_profile(isc_mutex_t *mp, const char *file, int line) { in isc_mutex_init_profile() argument
102 err = pthread_mutex_init(&mp->mutex, NULL); in isc_mutex_init_profile()
122 mp->stats = &stats[stats_next++]; in isc_mutex_init_profile()
126 mp->stats->file = file; in isc_mutex_init_profile()
127 mp->stats->line = line; in isc_mutex_init_profile()
128 mp->stats->count = 0; in isc_mutex_init_profile()
129 timevalclear(&mp->stats->locked_total); in isc_mutex_init_profile()
130 timevalclear(&mp->stats->wait_total); in isc_mutex_init_profile()
132 mp->stats->lockers[i].file = NULL; in isc_mutex_init_profile()
133 mp->stats->lockers[i].line = 0; in isc_mutex_init_profile()
[all …]
/freebsd-12-stable/sys/fs/fuse/
Dfuse_vfsops.c218 fuse_vfs_remount(struct mount *mp, struct thread *td, uint64_t mntopts, in fuse_vfs_remount() argument
222 struct fuse_data *data = fuse_get_mpdata(mp); in fuse_vfs_remount()
229 if ((mp->mnt_flag ^ data->mnt_flag) & cant_update_opts) { in fuse_vfs_remount()
233 data, mp, err); in fuse_vfs_remount()
243 data, mp, err); in fuse_vfs_remount()
250 "device is dead during mount", data, mp, err); in fuse_vfs_remount()
269 fuse_vfsop_fhtovp(struct mount *mp, struct fid *fhp, int flags, in fuse_vfsop_fhtovp() argument
277 if (!(fuse_get_mpdata(mp)->dataflags & FSESS_EXPORT_SUPPORT)) in fuse_vfsop_fhtovp()
280 error = VFS_VGET(mp, ffhp->nid, LK_EXCLUSIVE, &nvp); in fuse_vfsop_fhtovp()
297 fuse_vfsop_mount(struct mount *mp) in fuse_vfsop_mount() argument
[all …]
/freebsd-12-stable/sys/fs/msdosfs/
Dmsdosfs_vfsops.c113 static int update_mp(struct mount *mp, struct thread *td);
114 static int mountmsdosfs(struct vnode *devvp, struct mount *mp);
126 update_mp(struct mount *mp, struct thread *td) in update_mp() argument
128 struct msdosfsmount *pmp = VFSTOMSDOSFS(mp); in update_mp()
132 if (!vfs_getopt(mp->mnt_optnew, "kiconv", NULL, NULL)) { in update_mp()
134 error = vfs_getopt(mp->mnt_optnew, in update_mp()
137 error = vfs_getopt(mp->mnt_optnew, in update_mp()
140 error = vfs_getopt(mp->mnt_optnew, in update_mp()
158 if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1) in update_mp()
160 if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1) in update_mp()
[all …]
/freebsd-12-stable/sys/fs/devfs/
Ddevfs_vfsops.c70 devfs_mount(struct mount *mp) in devfs_mount() argument
83 if (mp->mnt_flag & MNT_ROOTFS) in devfs_mount()
89 if (mp->mnt_optnew != NULL) { in devfs_mount()
90 if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) in devfs_mount()
93 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in devfs_mount()
96 if (vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0 && in devfs_mount()
97 (vfs_scanopt(mp->mnt_optnew, "ruleset", "%d", in devfs_mount()
99 vfs_mount_error(mp, "%s", in devfs_mount()
113 if (mp->mnt_flag & MNT_UPDATE) { in devfs_mount()
115 fmp = mp->mnt_data; in devfs_mount()
[all …]
/freebsd-12-stable/usr.sbin/lpr/lpd/
Dmodes.c206 struct modes *mp; in msearch() local
208 for (mp = cmodes; mp->name; ++mp) in msearch()
209 if (CHK(str, mp->name)) { in msearch()
210 ip->c_cflag &= ~mp->unset; in msearch()
211 ip->c_cflag |= mp->set; in msearch()
214 for (mp = imodes; mp->name; ++mp) in msearch()
215 if (CHK(str, mp->name)) { in msearch()
216 ip->c_iflag &= ~mp->unset; in msearch()
217 ip->c_iflag |= mp->set; in msearch()
220 for (mp = lmodes; mp->name; ++mp) in msearch()
[all …]

12345678910>>...26