Home
last modified time | relevance | path

Searched refs:mp (Results 101 – 125 of 625) sorted by relevance

12345678910>>...25

/freebsd/contrib/sendmail/libmilter/
H A Dlibmilter.h135 # define smutex_init(mp) (pthread_mutex_init(mp, NULL) == 0) argument
136 # define smutex_destroy(mp) (pthread_mutex_destroy(mp) == 0) argument
137 # define smutex_lock(mp) (pthread_mutex_lock(mp) == 0) argument
138 # define smutex_unlock(mp) (pthread_mutex_unlock(mp) == 0) argument
139 # define smutex_trylock(mp) (pthread_mutex_trylock(mp) == 0) argument
151 #define scond_wait(cp, mp) pthread_cond_wait(cp, mp) argument
154 #define scond_timedwait(cp, mp, to) \ argument
162 r = pthread_cond_timedwait(cp,mp,&timeout); \
/freebsd/sys/fs/fuse/
H A Dfuse_internal.c169 struct mount *mp; in fuse_internal_access() local
174 mp = vnode_mount(vp); in fuse_internal_access()
176 data = fuse_get_mpdata(mp); in fuse_internal_access()
256 struct mount *mp; in fuse_internal_cache_attrs() local
261 mp = vnode_mount(vp); in fuse_internal_cache_attrs()
263 data = fuse_get_mpdata(mp); in fuse_internal_cache_attrs()
387 if (fsess_not_impl(mp, op)) in fuse_internal_fsync()
1136 struct mount *mp; in fuse_internal_setattr() local
1144 mp = vnode_mount(vp); in fuse_internal_setattr()
1259 struct mount *mp; in fuse_internal_clear_suid_on_write() local
[all …]
/freebsd/libexec/talkd/
H A Dtalkd.c70 register CTL_MSG *mp = &request; in main() local
96 cc = recv(0, (char *)mp, sizeof(*mp), 0); in main()
97 if (cc != sizeof (*mp)) { in main()
103 (void)memcpy(&ctl_addr.sa_data, &mp->ctl_addr.sa_data, in main()
105 ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in main()
107 process_request(mp, &response); in main()
/freebsd/tools/test/stress2/misc/
H A Dpathconf.sh36 mp=${mntpoint}2
45 mkdir -p $mp/nfs || exit 1
46 mount -t nfs -o tcp -o retrycnt=3 -o intr,soft -o rw $nfs_export $mp/nfs
47 chmod a+rw $mp/nfs
54 umount $mp/nfs
55 rm -rf $mp
H A Dnfssillyrename.sh47 mp=$mntpoint/sillyrename
48 rm -rf $mp
49 mkdir -p $mp
52 cd $mp
62 rm -rf $mp
/freebsd/sys/geom/label/
H A Dg_label.c247 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_create()
263 gp = g_slice_new(mp, 1, pp, &cp, NULL, 0, NULL); in g_label_create()
399 if (strcmp(pp->geom->class->name, mp->name) == 0) in g_label_taste()
402 gp = g_new_geomf(mp, "label:taste"); in g_label_taste()
428 g_label_create(NULL, mp, pp, label, in g_label_taste()
441 g_label_ctl_create(struct gctl_req *req, struct g_class *mp) in g_label_ctl_create() argument
493 g_label_find_geom(struct g_class *mp, const char *name) in g_label_find_geom() argument
500 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_find_geom()
541 gp = g_label_find_geom(mp, name); in g_label_ctl_destroy()
574 g_label_ctl_create(req, mp); in g_label_config()
[all …]
/freebsd/sys/fs/tarfs/
H A Dtarfs_vfsops.c402 struct mount *mp; in tarfs_free_mount() local
418 mp = tmp->vfs; in tarfs_free_mount()
419 mp->mnt_data = NULL; in tarfs_free_mount()
889 mp->mnt_data = tmp; in tarfs_alloc_mount()
896 tmp->vfs = mp; in tarfs_alloc_mount()
955 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); in tarfs_mount()
1031 MNT_ILOCK(mp); in tarfs_mount()
1033 MNT_IUNLOCK(mp); in tarfs_mount()
1035 vfs_getnewfsid(mp); in tarfs_mount()
1036 vfs_mountedfrom(mp, as); in tarfs_mount()
[all …]
/freebsd/sys/geom/mountver/
H A Dg_mountver.c288 LIST_FOREACH(gp, &mp->geom, geom) { in g_mountver_create()
294 gp = g_new_geomf(mp, "%s", name); in g_mountver_create()
433 LIST_FOREACH(gp, &mp->geom, geom) { in g_mountver_find_geom()
474 gp = g_mountver_find_geom(mp, name); in g_mountver_ctl_destroy()
571 LIST_FOREACH(gp, &mp->geom, geom) { in g_mountver_taste()
631 g_mountver_ctl_create(req, mp); in g_mountver_config()
634 g_mountver_ctl_destroy(req, mp); in g_mountver_config()
661 struct g_class *mp; in g_mountver_shutdown_pre_sync() local
664 mp = arg; in g_mountver_shutdown_pre_sync()
678 g_mountver_init(struct g_class *mp) in g_mountver_init() argument
[all …]
/freebsd/sys/netinet6/
H A Ddest6.c63 dest6_input(struct mbuf **mp, int *offp, int proto) in dest6_input() argument
70 m = *mp; in dest6_input()
78 *mp = m; in dest6_input()
89 *mp = m; in dest6_input()
117 *mp = NULL; in dest6_input()
126 *mp = m; in dest6_input()
131 *mp = NULL; in dest6_input()
/freebsd/stand/common/
H A Dmodule.c337 for (mp = fp->f_modules; mp; mp = mp->m_next) { in command_lsmod()
810 if (mp) { in mod_load()
927 if (mp) in file_findmodule()
934 for (mp = fp->f_modules; mp; mp = mp->m_next) { in file_findmodule()
944 best = mp; in file_findmodule()
1558 if (mp) in file_addmodule()
1565 free(mp); in file_addmodule()
1573 *newmp = mp; in file_addmodule()
1594 while (mp) { in file_discard()
1596 mp1 = mp; in file_discard()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c199 mutex_destroy(kmutex_t *mp) in mutex_destroy() argument
205 mutex_enter(kmutex_t *mp) in mutex_enter() argument
208 mp->m_owner = pthread_self(); in mutex_enter()
216 mp->m_owner = pthread_self(); in mutex_enter_check_return()
221 mutex_tryenter(kmutex_t *mp) in mutex_tryenter() argument
225 mp->m_owner = pthread_self(); in mutex_tryenter()
234 mutex_exit(kmutex_t *mp) in mutex_exit() argument
349 mp->m_owner = pthread_self(); in cv_wait()
355 cv_wait(cv, mp); in cv_wait_sig()
382 mp->m_owner = pthread_self(); in cv_timedwait()
[all …]
/freebsd/contrib/less/
H A Dprompt.c64 static char *mp; variable
87 if (mp + len >= message + PROMPT_SIZE) in ap_str()
89 strncpy(mp, s, len); in ap_str()
90 mp += len; in ap_str()
91 *mp = '\0'; in ap_str()
175 return (mp > message); in cond()
355 while (mp > message && mp[-1] == ' ') in protochar()
356 mp--; in protochar()
357 *mp = '\0'; in protochar()
468 mp = message; in pr_expand()
[all …]
/freebsd/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dgetmntany.c87 getextmntent_impl(FILE *fp, struct extmnttab *mp) in getextmntent_impl() argument
92 ret = _sol_getmntent(fp, (struct mnttab *)mp); in getextmntent_impl()
94 if (stat64(mp->mnt_mountp, &st) != 0) { in getextmntent_impl()
95 mp->mnt_major = 0; in getextmntent_impl()
96 mp->mnt_minor = 0; in getextmntent_impl()
99 mp->mnt_major = major(st.st_dev); in getextmntent_impl()
100 mp->mnt_minor = minor(st.st_dev); in getextmntent_impl()
/freebsd/sys/geom/eli/
H A Dg_eli_ctl.c176 LIST_FOREACH(gp, &mp->geom, geom) { in g_eli_find_device()
230 sc = g_eli_find_device(mp, prov); in g_eli_ctl_detach()
1189 g_eli_ctl_attach(req, mp); in g_eli_config()
1191 g_eli_ctl_detach(req, mp); in g_eli_config()
1193 g_eli_ctl_onetime(req, mp); in g_eli_config()
1195 g_eli_ctl_configure(req, mp); in g_eli_config()
1197 g_eli_ctl_setkey(req, mp); in g_eli_config()
1199 g_eli_ctl_delkey(req, mp); in g_eli_config()
1201 g_eli_ctl_suspend(req, mp); in g_eli_config()
1203 g_eli_ctl_resume(req, mp); in g_eli_config()
[all …]
/freebsd/sys/security/mac/
H A Dmac_vfs.c117 mac_mount_init(struct mount *mp) in mac_mount_init() argument
123 mp->mnt_label = NULL; in mac_mount_init()
173 mac_mount_destroy(struct mount *mp) in mac_mount_destroy() argument
176 if (mp->mnt_label != NULL) { in mac_mount_destroy()
177 mac_mount_label_free(mp->mnt_label); in mac_mount_destroy()
178 mp->mnt_label = NULL; in mac_mount_destroy()
241 MAC_POLICY_PERFORM_NOSLEEP(devfs_vnode_associate, mp, mp->mnt_label, in mac_devfs_vnode_associate()
252 MAC_POLICY_CHECK(vnode_associate_extattr, mp, mp->mnt_label, vp, in mac_vnode_associate_extattr()
263 mp->mnt_label, vp, vp->v_label); in mac_vnode_associate_singlelabel()
294 MAC_POLICY_CHECK(vnode_create_extattr, cred, mp, mp->mnt_label, dvp, in mac_vnode_create_extattr()
[all …]
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_io.c48 holywrite(const atf_tc_t *tc, const char *mp) in holywrite() argument
104 extendfile(const atf_tc_t *tc, const char *mp) in extendfile() argument
111 extendfile_append(const atf_tc_t *tc, const char *mp) in extendfile_append() argument
138 overwrite512(const atf_tc_t *tc, const char *mp) in overwrite512() argument
145 overwrite64k(const atf_tc_t *tc, const char *mp) in overwrite64k() argument
152 overwrite_trunc(const atf_tc_t *tc, const char *mp) in overwrite_trunc() argument
159 shrinkfile(const atf_tc_t *tc, const char *mp) in shrinkfile() argument
173 read_after_unlink(const atf_tc_t *tc, const char *mp) in read_after_unlink() argument
187 ATF_REQUIRE_ERRNO(EBUSY, rump_sys_unmount(mp, 0) == -1); in read_after_unlink()
200 wrrd_after_unlink(const atf_tc_t *tc, const char *mp) in wrrd_after_unlink() argument
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/nothreads/include/isc/
H A Dcondition.h38 isc_result_t isc__nothread_wait_hack(isc_condition_t *cp, isc_mutex_t *mp);
44 #define isc_condition_wait(cp, mp) \ argument
45 isc__nothread_wait_hack(cp, mp)
47 #define isc_condition_waituntil(cp, mp, tp) \ argument
48 ((void)(cp), (void)(mp), (void)(tp), ISC_R_NOTIMPLEMENTED)
/freebsd/usr.bin/vtfontcvt/
H A Dvtfontcvt.c203 mp = xmalloc(sizeof *mp); in add_mapping()
204 mp->m_char = c; in add_mapping()
205 mp->m_glyph = gl; in add_mapping()
206 mp->m_length = 0; in add_mapping()
703 for (mp = mbase = TAILQ_FIRST(ml); mp != NULL; mp = mn) { in fold_mappings()
709 mbase = mp = mn; in fold_mappings()
718 struct mapping *mp; in write_mappings() local
725 i += mp->m_length; in write_mappings()
741 struct mapping *mp; in write_source_mappings() local
747 i += mp->m_length; in write_source_mappings()
[all …]
/freebsd/sys/fs/pseudofs/
H A Dpseudofs.c366 if (mp->mnt_flag & MNT_UPDATE) in pfs_mount()
369 MNT_ILOCK(mp); in pfs_mount()
370 mp->mnt_flag |= MNT_LOCAL; in pfs_mount()
371 mp->mnt_kern_flag |= MNTK_NOMSYNC; in pfs_mount()
372 MNT_IUNLOCK(mp); in pfs_mount()
373 mp->mnt_data = pi; in pfs_mount()
374 vfs_getnewfsid(mp); in pfs_mount()
376 sbp = &mp->mnt_stat; in pfs_mount()
377 vfs_mountedfrom(mp, pi->pi_name); in pfs_mount()
405 pfs_unmount(struct mount *mp, int mntflags) in pfs_unmount() argument
[all …]
/freebsd/sys/kern/
H A Dvfs_syscalls.c141 for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) { in kern_sync()
156 vfs_unbusy(mp); in kern_sync()
207 vfs_ref(mp); in sys_quotactl()
211 vfs_rel(mp); in sys_quotactl()
229 vfs_unbusy(mp); in sys_quotactl()
230 vfs_rel(mp); in sys_quotactl()
280 if (mp == NULL) in kern_do_statfs()
283 vfs_rel(mp); in kern_do_statfs()
299 vfs_unbusy(mp); in kern_do_statfs()
471 for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) { in kern_getfsstat()
[all …]
H A Duipc_syscalls.c658 error = getsockaddr(&to, mp->msg_name, mp->msg_namelen); in sendit()
663 mp->msg_name = to; in sendit()
676 if (mp->msg_control) { in sendit()
748 mp->msg_name); in kern_sendit()
768 iov = mp->msg_iov; in kern_sendit()
919 iov = mp->msg_iov; in kern_recvit()
934 &mp->msg_flags); in kern_recvit()
952 if (mp->msg_name) { in kern_recvit()
953 len = mp->msg_namelen; in kern_recvit()
973 mp->msg_namelen = len; in kern_recvit()
[all …]
/freebsd/usr.bin/getconf/
H A Dconfstr.gperf73 const struct map *mp;
75 for (mp = wordlist; mp->name != NULL; mp++) {
76 if (mp->valid)
77 func(mp->name, mp->key);
H A Dpathconf.gperf75 const struct map *mp;
77 for (mp = wordlist; mp->name != NULL; mp++) {
78 if (mp->valid)
79 func(mp->name, mp->key, path);
/freebsd/sys/ufs/ufs/
H A Dufs_extattr.c217 ump = VFSTOUFS(mp); in ufs_extattr_start()
455 ump = VFSTOUFS(mp); in ufs_extattr_autostart()
466 struct ufsmount *ump = VFSTOUFS(mp); in ufs_extattr_autostart_locked()
561 struct ufsmount *ump = VFSTOUFS(mp); in ufs_extattr_stop()
716 struct ufsmount *ump = VFSTOUFS(mp); in ufs_extattrctl()
750 error = ufs_extattr_start(mp, td); in ufs_extattrctl()
762 error = ufs_extattr_stop(mp, td); in ufs_extattrctl()
848 struct mount *mp = vp->v_mount; in ufs_extattr_get() local
1050 struct mount *mp = vp->v_mount; in ufs_extattr_set() local
1158 struct mount *mp = vp->v_mount; in ufs_extattr_rm() local
[all …]
/freebsd/sys/contrib/openzfs/lib/libshare/
H A Dnfs.c153 nfs_escape_mountpoint(const char *mp, char **out, boolean_t *need_free) in nfs_escape_mountpoint() argument
155 if (strpbrk(mp, "\t\n\v\f\r \\") == NULL) { in nfs_escape_mountpoint()
156 *out = (char *)mp; in nfs_escape_mountpoint()
160 size_t len = strlen(mp); in nfs_escape_mountpoint()
167 for (const char *c = mp; c < mp + len; ++c) in nfs_escape_mountpoint()
191 char *mp; in nfs_process_exports() local
193 &mp, &need_mp_free)) != SA_OK) { in nfs_process_exports()
199 size_t buflen = 0, mplen = strlen(mp); in nfs_process_exports()
208 strncmp(buf, mp, mplen) == 0); in nfs_process_exports()
212 free(mp); in nfs_process_exports()

12345678910>>...25