Home
last modified time | relevance | path

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

12345678910>>...25

/NextBSD/contrib/amd/amd/
HDmap.c105 static void exported_ap_free(am_node *mp);
106 static void remove_am(am_node *mp);
153 am_node *mp; in path_to_exported_ap() local
155 mp = get_first_exported_ap(&index); in path_to_exported_ap()
156 while (mp != NULL) { in path_to_exported_ap()
157 if (STREQ(mp->am_path, path)) in path_to_exported_ap()
159 mp = get_next_exported_ap(&index); in path_to_exported_ap()
161 return mp; in path_to_exported_ap()
190 get_ap_child(am_node *mp, char *fname) in get_ap_child() argument
193 mntfs *mf = mp->am_mnt; in get_ap_child()
[all …]
HDautil.c161 forcibly_timeout_mp(am_node *mp) in forcibly_timeout_mp() argument
163 mntfs *mf = mp->am_mnt; in forcibly_timeout_mp()
167 if (mf && ((mp->am_flags & AMF_ROOT) || in forcibly_timeout_mp()
170 … plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path); in forcibly_timeout_mp()
172 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path); in forcibly_timeout_mp()
174 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path); in forcibly_timeout_mp()
175 mp->am_flags &= ~AMF_NOTIMEOUT; in forcibly_timeout_mp()
176 mp->am_ttl = clocktime(NULL); in forcibly_timeout_mp()
182 clocktime(&mp->am_parent->am_fattr.na_mtime); in forcibly_timeout_mp()
249 am_mounted(am_node *mp) in am_mounted() argument
[all …]
HDnfs_subr.c86 static void count_map_entries(const am_node *mp, u_int *out_blocks, u_int *out_bfree, u_int *out_ba…
90 do_readlink(am_node *mp, int *error_return) in do_readlink() argument
99 if (mp->am_mnt->mf_ops->readlink) { in do_readlink()
101 mp = (*mp->am_mnt->mf_ops->readlink) (mp, &retry); in do_readlink()
102 if (mp == 0) { in do_readlink()
109 if (mp->am_link) { in do_readlink()
110 ln = mp->am_link; in do_readlink()
112 ln = mp->am_mnt->mf_mount; in do_readlink()
132 am_node *mp; in nfsproc_getattr_2_svc() local
139 mp = fh_to_mp3(argp, &retry, VLOOK_CREATE); in nfsproc_getattr_2_svc()
[all …]
HDamfs_generic.c58 #define IN_PROGRESS(cp) ((cp)->mp->am_mnt->mf_flags & MFF_MOUNTING)
79 am_node *mp; /* Node we are trying to mount */ member
90 static am_node *amfs_lookup_node(am_node *mp, char *fname, int *error_return);
98 static char *amfs_parse_defaults(am_node *mp, mntfs *mf, char *def_opts);
105 amfs_lookup_node(am_node *mp, char *fname, int *error_return) in amfs_lookup_node() argument
121 if (mp->am_mnt == 0 || mp->am_mnt->mf_fsflags & FS_DIRECT) { in amfs_lookup_node()
124 dlog("%s/%s mount ignored - going down", mp->am_path, fname); in amfs_lookup_node()
134 return mp; /* "." is the current node */ in amfs_lookup_node()
136 if (mp->am_parent) { in amfs_lookup_node()
137 dlog(".. in %s gives %s", mp->am_path, mp->am_parent->am_path); in amfs_lookup_node()
[all …]
HDamq_subr.c73 static am_node *mp; in amqproc_mnttree_1_svc() local
75 mp = find_ap(*(char **) argp); in amqproc_mnttree_1_svc()
76 return (amq_mount_tree_p *) ((void *)&mp); in amqproc_mnttree_1_svc()
87 am_node *mp = find_ap(*(char **) argp); in amqproc_umnt_1_svc() local
89 if (mp) in amqproc_umnt_1_svc()
90 forcibly_timeout_mp(mp); in amqproc_umnt_1_svc()
113 static am_node *mp; in amqproc_export_1_svc() local
115 mp = get_exported_ap(0); in amqproc_export_1_svc()
116 aml.amq_mount_tree_list_val = (amq_mount_tree_p *) ((void *) &mp); in amqproc_export_1_svc()
210 am_node *mp; in amqproc_pawd_1_svc() local
[all …]
/NextBSD/lib/libc/db/mpool/
HDmpool.c66 MPOOL *mp; in mpool_open() local
83 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL) in mpool_open()
85 TAILQ_INIT(&mp->lqh); in mpool_open()
87 TAILQ_INIT(&mp->hqh[entry]); in mpool_open()
88 mp->maxcache = maxcache; in mpool_open()
89 mp->npages = sb.st_size / pagesize; in mpool_open()
90 mp->pagesize = pagesize; in mpool_open()
91 mp->fd = fd; in mpool_open()
92 return (mp); in mpool_open()
100 mpool_filter(MPOOL *mp, void (*pgin) (void *, pgno_t, void *), in mpool_filter() argument
[all …]
/NextBSD/usr.sbin/ppp/
HDmp.c136 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) in mp_ReadHeader() argument
138 if (mp->local_is12bit) { in mp_ReadHeader()
194 struct mp *mp = (struct mp *)v; in mp_UpDown() local
197 percent = MAX(mp->link.stats.total.in.OctetsPerSecond, in mp_UpDown()
198 mp->link.stats.total.out.OctetsPerSecond) * 800 / in mp_UpDown()
199 mp->bundle->bandwidth; in mp_UpDown()
200 if (percent >= mp->cfg.autoload.max) { in mp_UpDown()
202 bundle_AutoAdjust(mp->bundle, percent, AUTO_UP); in mp_UpDown()
203 } else if (percent <= mp->cfg.autoload.min) { in mp_UpDown()
205 bundle_AutoAdjust(mp->bundle, percent, AUTO_DOWN); in mp_UpDown()
[all …]
/NextBSD/sys/fs/nullfs/
HDnull_vfsops.c73 nullfs_mount(struct mount *mp) in nullfs_mount() argument
84 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()
130 vn_lock(mp->mnt_vnodecovered, LK_EXCLUSIVE | LK_RETRY); in nullfs_mount()
[all …]
/NextBSD/sys/kern/
HDvfs_mount.c108 struct mount *mp; in mount_init() local
110 mp = (struct mount *)mem; in mount_init()
111 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); in mount_init()
112 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); in mount_init()
119 struct mount *mp; in mount_fini() local
121 mp = (struct mount *)mem; in mount_fini()
122 lockdestroy(&mp->mnt_explock); in mount_fini()
123 mtx_destroy(&mp->mnt_mtx); in mount_fini()
429 vfs_ref(struct mount *mp) in vfs_ref() argument
432 CTR2(KTR_VFS, "%s: mp %p", __func__, mp); in vfs_ref()
[all …]
HDvfs_export.c69 static int vfs_hang_addrlist(struct mount *mp, struct netexport *nep,
98 vfs_hang_addrlist(struct mount *mp, struct netexport *nep, in vfs_hang_addrlist() argument
119 vfs_mount_error(mp, "ex_anon.cr_version: %d != %d", in vfs_hang_addrlist()
125 if (mp->mnt_flag & MNT_DEFEXPORTED) { in vfs_hang_addrlist()
126 vfs_mount_error(mp, in vfs_hang_addrlist()
127 "MNT_DEFEXPORTED already set for mount %p", mp); in vfs_hang_addrlist()
141 MNT_ILOCK(mp); in vfs_hang_addrlist()
142 mp->mnt_flag |= MNT_DEFEXPORTED; in vfs_hang_addrlist()
143 MNT_IUNLOCK(mp); in vfs_hang_addrlist()
149 vfs_mount_error(mp, "ex_addrlen %d is greater than %d", in vfs_hang_addrlist()
[all …]
/NextBSD/sys/ufs/ffs/
HDffs_vfsops.c84 static int ffs_sync_lazy(struct mount *mp);
142 ffs_mount(struct mount *mp) in ffs_mount() argument
156 if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) in ffs_mount()
170 vfs_deleteopt(mp->mnt_optnew, "groupquota"); in ffs_mount()
171 vfs_deleteopt(mp->mnt_optnew, "userquota"); in ffs_mount()
173 fspec = vfs_getopts(mp->mnt_optnew, "from", &error); in ffs_mount()
178 if (vfs_getopt(mp->mnt_optnew, "acls", NULL, NULL) == 0) in ffs_mount()
181 if (vfs_getopt(mp->mnt_optnew, "snapshot", NULL, NULL) == 0) { in ffs_mount()
187 vfs_deleteopt(mp->mnt_optnew, "snapshot"); in ffs_mount()
188 vfs_deleteopt(mp->mnt_opt, "snapshot"); in ffs_mount()
[all …]
HDffs_suspend.c72 ffs_susp_suspended(struct mount *mp) in ffs_susp_suspended() argument
78 ump = VFSTOUFS(mp); in ffs_susp_suspended()
97 struct mount *mp; in ffs_susp_rdwr() local
107 error = devfs_get_cdevpriv((void **)&mp); in ffs_susp_rdwr()
113 ump = VFSTOUFS(mp); in ffs_susp_rdwr()
117 if (ffs_susp_suspended(mp) == 0) { in ffs_susp_rdwr()
178 ffs_susp_suspend(struct mount *mp) in ffs_susp_suspend() argument
185 if (!ffs_own_mount(mp)) in ffs_susp_suspend()
187 if (ffs_susp_suspended(mp)) in ffs_susp_suspend()
190 ump = VFSTOUFS(mp); in ffs_susp_suspend()
[all …]
/NextBSD/contrib/ntp/lib/isc/pthreads/include/isc/
HDmutex.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 …]
/NextBSD/lib/libstand/
HDzalloc.c89 znalloc(MemPool *mp, uintptr_t bytes) in znalloc() argument
106 if (bytes <= mp->mp_Size - mp->mp_Used) { in znalloc()
110 for (pmn = &mp->mp_First; (mn=*pmn) != NULL; pmn = &mn->mr_Next) { in znalloc()
130 mp->mp_Used += bytes; in znalloc()
148 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument
163 if ((char *)ptr < (char *)mp->mp_Base || in zfree()
164 (char *)ptr + bytes > (char *)mp->mp_End || in zfree()
176 mp->mp_Used -= bytes; in zfree()
178 for (pmn = &mp->mp_First; (mn = *pmn) != NULL; pmn = &mn->mr_Next) { in zfree()
212 if (pmn != &mp->mp_First) { in zfree()
[all …]
/NextBSD/sys/fs/tmpfs/
HDtmpfs_vfsops.c133 tmpfs_mount(struct mount *mp) in tmpfs_mount() argument
155 if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) in tmpfs_mount()
158 if (mp->mnt_flag & MNT_UPDATE) { in tmpfs_mount()
160 if (vfs_filteropt(mp->mnt_optnew, tmpfs_updateopts) != 0) in tmpfs_mount()
162 if (vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0) != in tmpfs_mount()
163 ((struct tmpfs_mount *)mp->mnt_data)->tm_ronly) in tmpfs_mount()
168 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY); in tmpfs_mount()
169 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); in tmpfs_mount()
170 VOP_UNLOCK(mp->mnt_vnodecovered, 0); in tmpfs_mount()
174 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount()
[all …]
/NextBSD/sys/fs/unionfs/
HDunion_vfsops.c73 unionfs_domount(struct mount *mp) in unionfs_domount() argument
95 UNIONFSDEBUG("unionfs_mount(mp = %p)\n", (void *)mp); in unionfs_domount()
108 if (mp->mnt_flag & MNT_ROOTFS) { in unionfs_domount()
109 vfs_mount_error(mp, "Cannot union mount root filesystem"); in unionfs_domount()
116 if (mp->mnt_flag & MNT_UPDATE) { in unionfs_domount()
117 vfs_mount_error(mp, "unionfs does not support mount update"); in unionfs_domount()
124 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in unionfs_domount()
126 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, in unionfs_domount()
129 vfs_mount_error(mp, "Invalid target"); in unionfs_domount()
132 if (vfs_getopt(mp->mnt_optnew, "below", NULL, NULL) == 0) in unionfs_domount()
[all …]
/NextBSD/libexec/talkd/
HDprocess.c63 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) in process_request() argument
69 rp->type = mp->type; in process_request()
71 if (mp->vers != TALK_VERSION) { in process_request()
72 syslog(LOG_WARNING, "bad protocol version %d", mp->vers); in process_request()
76 mp->id_num = ntohl(mp->id_num); in process_request()
77 mp->addr.sa_family = ntohs(mp->addr.sa_family); in process_request()
78 if (mp->addr.sa_family != AF_INET) { in process_request()
80 mp->addr.sa_family); in process_request()
84 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in process_request()
85 if (mp->ctl_addr.sa_family != AF_INET) { in process_request()
[all …]
/NextBSD/usr.bin/mail/
HDquit.c73 struct message *mp; in quit() local
144 for (mp = &message[0]; mp < &message[msgCount]; mp++) { in quit()
145 if (mp->m_flag & MNEW) { in quit()
146 mp->m_flag &= ~MNEW; in quit()
147 mp->m_flag |= MSTATUS; in quit()
149 if (mp->m_flag & MSTATUS) in quit()
151 if ((mp->m_flag & MTOUCH) == 0) in quit()
152 mp->m_flag |= MPRESERVE; in quit()
153 if ((mp->m_flag & nohold) == 0) in quit()
154 mp->m_flag |= holdbit; in quit()
[all …]
HDcmd1.c60 struct message *mp; in headers() local
68 mp = &message[screen * size]; in headers()
69 if (mp >= &message[msgCount]) in headers()
70 mp = &message[msgCount - size]; in headers()
71 if (mp < &message[0]) in headers()
72 mp = &message[0]; in headers()
74 mesg = mp - &message[0]; in headers()
76 dot = mp; in headers()
77 for (; mp < &message[msgCount]; mp++) { in headers()
79 if (mp->m_flag & MDELETED) in headers()
[all …]
/NextBSD/contrib/ntp/lib/isc/pthreads/
HDmutex.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 …]
/NextBSD/sys/fs/fuse/
HDfuse_vfsops.c205 fuse_vfsop_mount(struct mount *mp) in fuse_vfsop_mount() argument
235 if (mp->mnt_flag & MNT_UPDATE) in fuse_vfsop_mount()
238 MNT_ILOCK(mp); in fuse_vfsop_mount()
239 mp->mnt_flag |= MNT_SYNCHRONOUS; in fuse_vfsop_mount()
240 mp->mnt_data = NULL; in fuse_vfsop_mount()
241 MNT_IUNLOCK(mp); in fuse_vfsop_mount()
243 opts = mp->mnt_optnew; in fuse_vfsop_mount()
304 if (err != 0 || data == NULL || data->mp != NULL) { in fuse_vfsop_mount()
306 data, data != NULL ? data->mp : NULL); in fuse_vfsop_mount()
330 data->mp = mp; in fuse_vfsop_mount()
[all …]
/NextBSD/sys/fs/devfs/
HDdevfs_vfsops.c68 devfs_mount(struct mount *mp) in devfs_mount() argument
81 if (mp->mnt_flag & MNT_ROOTFS) in devfs_mount()
90 if (mp->mnt_optnew != NULL) { in devfs_mount()
91 if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) in devfs_mount()
94 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in devfs_mount()
97 if (vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0 && in devfs_mount()
98 (vfs_scanopt(mp->mnt_optnew, "ruleset", "%d", in devfs_mount()
100 vfs_mount_error(mp, "%s", in devfs_mount()
114 if (mp->mnt_flag & MNT_UPDATE) { in devfs_mount()
116 fmp = mp->mnt_data; in devfs_mount()
[all …]
/NextBSD/usr.sbin/lpr/lpd/
HDmodes.c204 struct modes *mp; in msearch() local
206 for (mp = cmodes; mp->name; ++mp) in msearch()
207 if (CHK(str, mp->name)) { in msearch()
208 ip->c_cflag &= ~mp->unset; in msearch()
209 ip->c_cflag |= mp->set; in msearch()
212 for (mp = imodes; mp->name; ++mp) in msearch()
213 if (CHK(str, mp->name)) { in msearch()
214 ip->c_iflag &= ~mp->unset; in msearch()
215 ip->c_iflag |= mp->set; in msearch()
218 for (mp = lmodes; mp->name; ++mp) in msearch()
[all …]
/NextBSD/bin/stty/
HDmodes.c212 const struct modes *mp; in msearch() local
217 for (mp = cmodes; mp->name; ++mp) in msearch()
218 if (CHK(mp->name)) { in msearch()
219 ip->t.c_cflag &= ~mp->unset; in msearch()
220 ip->t.c_cflag |= mp->set; in msearch()
224 for (mp = imodes; mp->name; ++mp) in msearch()
225 if (CHK(mp->name)) { in msearch()
226 ip->t.c_iflag &= ~mp->unset; in msearch()
227 ip->t.c_iflag |= mp->set; in msearch()
231 for (mp = lmodes; mp->name; ++mp) in msearch()
[all …]
/NextBSD/sys/fs/msdosfs/
HDmsdosfs_vfsops.c107 static int update_mp(struct mount *mp, struct thread *td);
108 static int mountmsdosfs(struct vnode *devvp, struct mount *mp);
120 update_mp(struct mount *mp, struct thread *td) in update_mp() argument
122 struct msdosfsmount *pmp = VFSTOMSDOSFS(mp); in update_mp()
126 if (!vfs_getopt(mp->mnt_optnew, "kiconv", NULL, NULL)) { in update_mp()
128 error = vfs_getopt(mp->mnt_optnew, in update_mp()
131 error = vfs_getopt(mp->mnt_optnew, in update_mp()
134 error = vfs_getopt(mp->mnt_optnew, in update_mp()
152 if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1) in update_mp()
154 if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1) in update_mp()
[all …]

12345678910>>...25