Searched refs:mp (Results 51 - 75 of 592) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/amd/libamu/
H A Dmisc_rpc.c60 rpc_msg_init(struct rpc_msg *mp, u_long prog, u_long vers, u_long proc) argument
65 memset((voidp) mp, 0, sizeof(*mp));
66 mp->rm_xid = 0;
67 mp->rm_direction = CALL;
68 mp->rm_call.cb_rpcvers = RPC_MSG_VERSION;
69 mp->rm_call.cb_prog = prog;
70 mp->rm_call.cb_vers = vers;
71 mp->rm_call.cb_proc = proc;
121 make_rpc_packet(char *buf, int buflen, u_long proc, struct rpc_msg *mp, void argument
[all...]
/freebsd-11-stable/contrib/netbsd-tests/fs/ptyfs/
H A Dt_nullpts.c25 mountptyfs(const char *mp, int flags) argument
29 if (rump_sys_mkdir(mp, 0777) == -1) {
31 atf_tc_fail_errno("null create %s", mp);
36 if (rump_sys_mount(MOUNT_PTYFS, mp, flags, &args, sizeof(args)) == -1)
41 mountnull(const char *what, const char *mp, int flags) argument
49 if (rump_sys_mkdir(mp, 0777) == -1) {
51 atf_tc_fail_errno("null create %s", mp);
55 if (rump_sys_mount(MOUNT_NULL, mp, flags, &nargs, sizeof(nargs)) == -1)
/freebsd-11-stable/usr.bin/showmount/
H A Dshowmount.c264 register struct mountlist *mp; local
275 mp = (struct mountlist *)malloc(sizeof(struct mountlist));
276 if (mp == NULL)
278 mp->ml_left = mp->ml_right = (struct mountlist *)0;
279 strp = mp->ml_host;
282 strp = mp->ml_dirp;
291 *mlp = mp;
295 val = strcmp(mp->ml_host, tp->ml_host);
296 val2 = strcmp(mp
393 print_dump(struct mountlist *mp) argument
[all...]
/freebsd-11-stable/contrib/amd/amd/
H A Damq_subr.c69 static am_node *mp; local
71 mp = find_ap(*(char **) argp);
72 return (amq_mount_tree_p *) ((void *)&mp);
83 am_node *mp = find_ap(*(char **) argp); local
85 if (mp)
86 forcibly_timeout_mp(mp);
113 am_node *mp = find_ap(*(char **) argp); local
117 if (mp && mp->am_fd[0] >= 0) {
118 n = read(mp
161 static am_node *mp; local
264 am_node *mp; local
331 am_node *mp = (am_node *) objp; local
375 am_node *mp = (am_node *) objp; local
399 am_node *mp = (am_node *) objp; local
[all...]
H A Dnfs_subr.c93 static void count_map_entries(const am_node *mp, u_int *out_blocks, u_int *out_bfree, u_int *out_bavail);
97 do_readlink(am_node *mp, int *error_return) argument
106 if (mp->am_al->al_mnt->mf_ops->readlink) {
108 mp = (*mp->am_al->al_mnt->mf_ops->readlink) (mp, &retry);
109 if (mp == NULL) {
116 if (mp->am_link) {
117 ln = mp->am_link;
119 ln = mp
139 am_node *mp; local
204 am_node *mp; local
260 nfs_quick_reply(am_node *mp, int error) argument
304 am_node *mp; local
388 am_node *mp = fh_to_mp3(&argp->da_fhandle, &retry, VLOOK_DELETE); local
513 am_node *mp; local
543 am_node *mp; local
599 count_map_entries(const am_node *mp, u_int *out_blocks, u_int *out_bfree, u_int *out_bavail) argument
852 mp_to_fh(am_node *mp, am_nfs_fh *fhp) argument
893 mp_to_fh3(am_node *mp, am_nfs_fh3 *fhp) argument
985 am_node *mp; local
1014 am_node *mp, *ap; local
1080 am_node *mp; local
1146 am_node *mp; local
1233 am_node *mp; local
1270 am_node *mp; local
1320 am_node *mp; local
1586 am_node *mp; local
1642 am_node *mp; local
1673 am_node *mp; local
1746 am_node *mp; local
1804 am_node *mp; local
[all...]
H A 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 in struct:continuation
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) argument
117 if (mp->am_al == NULL || mp->am_al->al_mnt == NULL || mp->am_al->al_mnt->mf_fsflags & FS_DIRECT) {
120 dlog("%s/%s mount ignored - going down", mp->am_path, fname);
130 return mp; /* "
354 am_node *mp; local
506 am_node *mp = cp->mp; local
609 am_node *mp = cp->mp; local
712 am_node *mp = cp->mp; local
978 amfs_parse_defaults(am_node *mp, mntfs *mf, char *def_opts) argument
1152 amfs_generic_lookup_child(am_node *mp, char *fname, int *error_return, int op) argument
1215 amfs_generic_umount(am_node *mp, mntfs *mf) argument
[all...]
H A Damfs_toplvl.c166 amfs_toplvl_mount(am_node *mp, mntfs *mf) argument
178 if (stat(mp->am_path, &stb) < 0) {
181 plog(XLOG_WARNING, "%s is not a directory", mp->am_path);
194 autofs_get_opts(opts, sizeof(opts), mp->am_autofs_fh);
241 error = amfs_mount(mp, mf, opts);
255 amfs_toplvl_umount(am_node *mp, mntfs *mf) argument
274 if (lstat(mp->am_path, &stb) < 0) {
276 dlog("lstat(%s): %m", mp->am_path);
280 plog(XLOG_ERROR, "amfs_toplvl_umount: %s is not a directory, aborting.", mp->am_path);
285 error = UMOUNT_FS(mp
[all...]
/freebsd-11-stable/sys/fs/fdescfs/
H A Dfdesc_vfsops.c79 fdesc_mount(struct mount *mp) argument
92 if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS))
102 mp->mnt_data = fmp;
104 if (vfs_getopt(mp->mnt_optnew, "linrdlnk", NULL, NULL) == 0)
106 error = fdesc_allocvp(Froot, -1, FD_ROOT, mp, &rvp);
109 mp->mnt_data = NULL;
117 /*mp->mnt_flag |= MNT_LOCAL;*/
118 vfs_getnewfsid(mp);
120 vfs_mountedfrom(mp, "fdescfs");
125 fdesc_unmount(struct mount *mp, in argument
160 fdesc_root(struct mount *mp, int flags, struct vnode **vpp) argument
174 fdesc_statfs(struct mount *mp, struct statfs *sbp) argument
[all...]
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_inode.c79 struct mount *mp; local
81 mp = NULL;
101 if (vn_start_secondary_write(vp, &mp, V_NOWAIT) != 0) {
105 (void) vn_start_secondary_write(vp, &mp,
108 MNT_ILOCK(mp);
109 if ((mp->mnt_kern_flag &
111 MNT_IUNLOCK(mp);
122 MNT_IUNLOCK(mp);
157 mp == NULL &&
158 vn_start_secondary_write(vp, &mp, V_NOWAI
[all...]
/freebsd-11-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_union.c26 xput_tfile(const char *mp, const char *path) argument
31 strcpy(pathb, mp);
42 xread_tfile(const char *mp, const char *path) argument
48 strcpy(pathb, mp);
64 * Mount a unionfs for testing. Before calling, "mp" contains
69 mountunion(const char *mp, char *lowerpath) argument
81 if (rump_sys_mount(MOUNT_UNION, mp, 0,
109 basic(const atf_tc_t *tc, const char *mp) argument
117 mountunion(mp, lowerpath);
123 error = xread_tfile(mp, TFIL
155 whiteout(const atf_tc_t *tc, const char *mp) argument
[all...]
/freebsd-11-stable/sys/fs/smbfs/
H A Dsmbfs_vfsops.c131 smbfs_mount(struct mount *mp) argument
145 if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS))
148 if (vfs_filteropt(mp->mnt_optnew, smbfs_opts)) {
149 vfs_mount_error(mp, "%s", "Invalid option");
157 if (1 != vfs_scanopt(mp->mnt_optnew, "fd", "%d", &v)) {
158 vfs_mount_error(mp, "No fd option");
166 vfs_mount_error(mp, "invalid device handle %d %d\n", v, error);
173 mp->mnt_stat.f_iosize = SSTOVC(ssp)->vc_txmax;
174 mp->mnt_data = smp;
178 if (1 != vfs_scanopt(mp
259 smbfs_unmount(struct mount *mp, int mntflags) argument
313 smbfs_root(struct mount *mp, int flags, struct vnode **vpp) argument
386 smbfs_statfs(struct mount *mp, struct statfs *sbp) argument
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_lookup.c31 int *mp = d; local
32 assertEqualInt(*mp, 0x13579);
33 *mp = 0x2468;
39 int *mp = d; local
43 assertEqualInt(*mp, 0x13579);
52 int *mp = d; local
53 assertEqualInt(*mp, 0x1234);
54 *mp = 0x2345;
60 int *mp = d; local
64 assertEqualInt(*mp,
[all...]
H A Dtest_read_disk.c31 int *mp = d; local
32 assertEqualInt(*mp, 0x13579);
33 *mp = 0x2468;
39 int *mp = d; local
40 assertEqualInt(*mp, 0x13579);
49 int *mp = d; local
50 assertEqualInt(*mp, 0x1234);
51 *mp = 0x2345;
57 int *mp = d; local
58 assertEqualInt(*mp,
[all...]
/freebsd-11-stable/libexec/talkd/
H A Dtalkd.c82 register CTL_MSG *mp = &request; local
108 cc = recv(0, (char *)mp, sizeof(*mp), 0);
109 if (cc != sizeof (*mp)) {
115 (void)memcpy(&ctl_addr, &mp->ctl_addr, sizeof(ctl_addr));
116 ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family);
118 process_request(mp, &response);
/freebsd-11-stable/contrib/amd/fsinfo/
H A Dwr_atab.c124 fsi_mount *mp = (fsi_mount *) dd->dd_data; local
131 if (mp->m_dk->d_host->h_lochost) {
134 mp->m_dk->d_host, mp->m_exported->m_volname);
135 if (!STREQ(mp->m_dk->d_mountpt, amountpt)) {
138 * mp->m_name is the mount point of the filesystem
139 * mp->m_volname is the volume name of the filesystems
146 int mnlen = strlen(mp->m_volname);
162 if (mp->m_dk->d_host->h_lochost)
163 fprintf(af, " host==%s", mp
187 fsi_mount *mp = (fsi_mount *) dd->dd_data; local
[all...]
H A Dfsi_analyze.c176 fsi_mount *mp; local
179 ITER(mp, fsi_mount, q) {
180 if (ISSET(mp->m_mask, DM_EXPORTFS)) {
182 lwarning(mp->m_ioloc, "%s has duplicate exportfs data", mp->m_name);
183 mp->m_exported = mp;
184 if (!ISSET(mp->m_mask, DM_VOLNAME))
185 set_mount(mp, DM_VOLNAME, xstrdup(mp
213 fsi_mount *mp; local
250 fsi_mount *mp, *mp2 = NULL; local
414 fsi_mount *mp = NULL; local
513 fsi_mount *mp = (fsi_mount *) dd->dd_data; local
[all...]
/freebsd-11-stable/sys/fs/msdosfs/
H A Dmsdosfs_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) argument
122 struct msdosfsmount *pmp = VFSTOMSDOSFS(mp);
126 if (!vfs_getopt(mp->mnt_optnew, "kiconv", NULL, NULL)) {
128 error = vfs_getopt(mp->mnt_optnew,
131 error = vfs_getopt(mp->mnt_optnew,
134 error = vfs_getopt(mp->mnt_optnew,
152 if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
154 if (vfs_scanopt(mp
224 msdosfs_mount(struct mount *mp) argument
392 mountmsdosfs(struct vnode *devvp, struct mount *mp) argument
776 msdosfs_unmount(struct mount *mp, int mntflags) argument
850 msdosfs_root(struct mount *mp, int flags, struct vnode **vpp) argument
867 msdosfs_statfs(struct mount *mp, struct statfs *sbp) argument
917 msdosfs_sync(struct mount *mp, int waitfor) argument
986 msdosfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument
[all...]
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_vfsops.c67 static int ext2_flushfiles(struct mount *mp, int flags, struct thread *td);
69 static int ext2_reload(struct mount *mp, struct thread *td);
110 ext2_mount(struct mount *mp) argument
123 opts = mp->mnt_optnew;
142 if (mp->mnt_flag & MNT_UPDATE) {
143 ump = VFSTOEXT2(mp);
148 error = VFS_SYNC(mp, MNT_WAIT);
152 if (mp->mnt_flag & MNT_FORCE)
154 error = ext2_flushfiles(mp, flags, td);
160 vfs_flagopt(opts, "ro", &mp
480 ext2_reload(struct mount *mp, struct thread *td) argument
576 ext2_mountfs(struct vnode *devvp, struct mount *mp) argument
747 ext2_unmount(struct mount *mp, int mntflags) argument
796 ext2_flushfiles(struct mount *mp, int flags, struct thread *td) argument
808 ext2_statfs(struct mount *mp, struct statfs *sbp) argument
862 ext2_sync(struct mount *mp, int waitfor) argument
938 ext2_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) argument
1049 ext2_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument
1084 ext2_sbupdate(struct ext2mount *mp, int waitfor) argument
1106 ext2_cgupdate(struct ext2mount *mp, int waitfor) argument
1140 ext2_root(struct mount *mp, int flags, struct vnode **vpp) argument
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/ctf/
H A Dctf_mod.c120 ctf_modopen(struct module *mp, int *error) argument
132 ctfsect.cts_data = mp->ctfdata;
133 ctfsect.cts_size = mp->ctfsize;
140 symsect.cts_data = mp->symtbl;
141 symsect.cts_size = mp->symhdr->sh_size;
152 strsect.cts_data = mp->strings;
153 strsect.cts_size = mp->strhdr->sh_size;
162 if (!ctf_leave_compressed && (caddr_t)fp->ctf_base != mp->ctfdata) {
171 kobj_set_ctf(mp, (caddr_t)fp->ctf_base, fp->ctf_size);
/freebsd-11-stable/contrib/amd/conf/mtab/
H A Dmtab_bsd.c57 mnt_dup(struct statfs *mp) argument
62 new_mp->mnt_fsname = xstrdup(mp->f_mntfromname);
63 new_mp->mnt_dir = xstrdup(mp->f_mntonname);
66 ty = mp->f_fstypename;
68 switch (mp->f_type) {
/freebsd-11-stable/lib/libmp/
H A Dmpasbn.c65 * and not in mp.h) have an underscore prepended to their name (this
85 #include "mp.h"
127 MINT *mp; local
129 mp = malloc(sizeof(*mp));
130 if (mp == NULL)
132 mp->bn = BN_new();
133 if (mp->bn == NULL)
135 BN_ERRCHECK(msg, BN_dec2bn(&mp->bn, s));
136 return (mp);
164 MINT *mp; local
257 _mfree(const char *msg __unused, MINT *mp) argument
266 mp_mfree(MINT *mp) argument
280 mp_min(MINT *mp) argument
305 mp_mout(const MINT *mp) argument
423 _mtod(const char *msg, const MINT *mp) argument
442 _mtox(const char *msg, const MINT *mp) argument
470 mp_mtox(const MINT *mp) argument
592 MINT *mp; local
[all...]
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_cond.c191 cond_wait_kernel(struct pthread_cond *cvp, struct pthread_mutex *mp, argument
198 robust = _mutex_enter_robust(curthread, mp);
200 error = _mutex_cv_detach(mp, &recurse);
203 _mutex_leave_robust(curthread, mp);
209 error = _thr_ucond_wait(&cvp->kcond, &mp->m_lock, abstime,
219 error2 = _mutex_cv_lock(mp, recurse, true);
221 error2 = _mutex_cv_lock(mp, recurse, true);
230 _mutex_leave_robust(curthread, mp);
240 _mutex_cv_attach(mp, recurse);
243 _mutex_leave_robust(curthread, mp);
263 cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp, const struct timespec *abstime, int cancel) argument
344 struct pthread_mutex *mp; local
414 struct pthread_mutex *mp; local
472 struct pthread_mutex *mp; local
[all...]
/freebsd-11-stable/sys/geom/
H A Dgeom_subr.c71 struct g_class *mp; member in struct:g_hh00
85 struct g_class *mp2, *mp; local
96 mp = hh->mp;
102 g_trace(G_T_TOPOLOGY, "g_load_class(%s)", mp->name);
103 KASSERT(mp->name != NULL && *mp->name != '\0',
106 if (mp2 == mp) {
112 } else if (strcmp(mp2->name, mp->name) == 0) {
121 LIST_INIT(&mp
140 g_unload_class(struct g_class *mp) argument
214 struct g_class *mp; local
263 struct g_class *mp, *mp2; local
306 g_retaste(struct g_class *mp) argument
331 g_new_geomf(struct g_class *mp, const char *fmt, ...) argument
443 struct g_class *mp; local
523 struct g_class *mp; local
607 struct g_class *mp; local
1276 struct g_class *mp; local
1468 db_show_geom_class(struct g_class *mp) argument
1485 struct g_class *mp; local
[all...]
/freebsd-11-stable/sys/kern/
H A Dvfs_subr.c608 * For a mountpoint mp, vfs_busy-enforced lock is before lock of any
609 * vnode belonging to mp.
639 vfs_busy(struct mount *mp, int flags) argument
643 CTR3(KTR_VFS, "%s: mp %p with flags %d", __func__, mp, flags);
645 MNT_ILOCK(mp);
646 MNT_REF(mp);
659 while (mp->mnt_kern_flag & MNTK_UNMOUNT) {
660 if (flags & MBF_NOWAIT || mp->mnt_kern_flag & MNTK_REFEXPIRE) {
661 MNT_REL(mp);
686 vfs_unbusy(struct mount *mp) argument
709 struct mount *mp; local
742 struct mount *mp; local
788 vfs_suser(struct mount *mp, struct thread *td) argument
834 vfs_getnewfsid(struct mount *mp) argument
949 vlrureclaim(struct mount *mp, int reclaim_nc_src, int trigger) argument
1068 struct mount *mp; local
1169 struct mount *mp, *nmp; local
1445 getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops, struct vnode **vpp) argument
1566 struct mount *mp; local
1609 insmntque1(struct vnode *vp, struct mount *mp, void (*dtr)(struct vnode *, void *), void *dtr_arg) argument
1658 insmntque(struct vnode *vp, struct mount *mp) argument
2175 struct mount *mp; local
2847 struct mount *mp; local
2906 struct mount *mp; local
3075 vflush(struct mount *mp, int rootrefs, int flags, struct thread *td) argument
3238 struct mount *mp, *ump, *mmp; local
3294 struct mount *mp; local
3533 struct mount *mp; local
3569 struct mount *mp; local
3919 struct mount *mp; local
4007 unmount_or_warn(struct mount *mp) argument
4028 struct mount *mp, *tmp; local
4057 vfs_msync(struct mount *mp, int flags) argument
4189 vfs_allocate_syncvnode(struct mount *mp) argument
4244 vfs_deallocate_syncvnode(struct mount *mp) argument
4264 struct mount *mp = syncvp->v_mount; local
4980 struct mount *mp; local
5228 struct mount *mp; local
5293 __mnt_vnode_next_all(struct vnode **mvp, struct mount *mp) argument
5326 __mnt_vnode_first_all(struct vnode **mvp, struct mount *mp) argument
5360 __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp) argument
5383 mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *mp) argument
5396 mnt_vnode_next_active(struct vnode **mvp, struct mount *mp) argument
5444 __mnt_vnode_next_active(struct vnode **mvp, struct mount *mp) argument
5454 __mnt_vnode_first_active(struct vnode **mvp, struct mount *mp) argument
5477 __mnt_vnode_markerfree_active(struct vnode **mvp, struct mount *mp) argument
[all...]
/freebsd-11-stable/cddl/compat/opensolaris/include/
H A Dmnttab.h30 int getmntent(FILE *fp, struct mnttab *mp);
33 void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);

Completed in 158 milliseconds

1234567891011>>