Home
last modified time | relevance | path

Searched full:mp (Results 1 – 25 of 1085) sorted by relevance

12345678910>>...44

/freebsd-src/usr.sbin/ppp/
H A Dmp.c77 #include "mp.h"
136 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) in mp_ReadHeader() argument
138 if (mp->local_is12bit) { in mp_ReadHeader()
143 log_Printf(LogWARN, "Oops - MP header without required zero bits\n"); in mp_ReadHeader()
153 log_Printf(LogWARN, "Oops - MP header without required zero bits\n"); 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()
[all …]
/freebsd-src/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dmutex.h49 #define MUTEX(mp) (&((mp)->m_mutex)) argument
52 spl_mutex_set_owner(kmutex_t *mp) in spl_mutex_set_owner() argument
54 mp->m_owner = current; in spl_mutex_set_owner()
58 spl_mutex_clear_owner(kmutex_t *mp) in spl_mutex_clear_owner() argument
60 mp->m_owner = NULL; in spl_mutex_clear_owner()
63 #define mutex_owner(mp) (READ_ONCE((mp)->m_owner)) argument
64 #define mutex_owned(mp) (mutex_owner(mp) == current) argument
65 #define MUTEX_HELD(mp) mutex_owned(mp) argument
66 #define MUTEX_NOT_HELD(mp) (!MUTEX_HELD(mp)) argument
70 spl_mutex_set_type(kmutex_t *mp, kmutex_type_t type) in spl_mutex_set_type() argument
[all …]
/freebsd-src/lib/libc/db/mpool/
H A Dmpool.c62 MPOOL *mp; in mpool_open() local
79 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL) in mpool_open()
81 TAILQ_INIT(&mp->lqh); in mpool_open()
83 TAILQ_INIT(&mp->hqh[entry]); in mpool_open()
84 mp->maxcache = maxcache; in mpool_open()
85 mp->npages = sb.st_size / pagesize; in mpool_open()
86 mp->pagesize = pagesize; in mpool_open()
87 mp->fd = fd; in mpool_open()
88 return (mp); in mpool_open()
96 mpool_filter(MPOOL *mp, void (*pgin) (void *, pgno_t, void *), in mpool_filter() argument
[all …]
/freebsd-src/sys/kern/
H A Dvfs_mount.c135 static void mount_devctl_event(const char *type, struct mount *mp, bool donew);
154 struct mount *mp; in mount_init() local
156 mp = (struct mount *)mem; in mount_init()
157 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); in mount_init()
158 mtx_init(&mp->mnt_listmtx, "struct mount vlist mtx", NULL, MTX_DEF); in mount_init()
159 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); in mount_init()
160 mp->mnt_pcpu = uma_zalloc_pcpu(pcpu_zone_16, M_WAITOK | M_ZERO); in mount_init()
161 mp->mnt_ref = 0; in mount_init()
162 mp->mnt_vfs_ops = 1; in mount_init()
163 mp in mount_init()
170 struct mount *mp; mount_fini() local
495 struct mount *mp; vfs_ref_from_vp() local
524 vfs_ref(struct mount * mp) vfs_ref() argument
556 struct mount *mp; vfs_register_upper_from_vp() local
586 vfs_register_for_notification(struct mount * mp,struct mount * ump,struct mount_upper_node * upper) vfs_register_for_notification() argument
596 vfs_drain_upper_locked(struct mount * mp) vfs_drain_upper_locked() argument
611 vfs_unregister_for_notification(struct mount * mp,struct mount_upper_node * upper) vfs_unregister_for_notification() argument
625 vfs_unregister_upper(struct mount * mp,struct mount_upper_node * upper) vfs_unregister_upper() argument
642 vfs_rel(struct mount * mp) vfs_rel() argument
665 struct mount *mp; vfs_mount_alloc() local
713 vfs_mount_destroy(struct mount * mp) vfs_mount_destroy() argument
1120 struct mount *mp; vfs_domount_first() local
1314 struct mount *mp; vfs_domount_update() local
1726 struct mount *mp; kern_unmount() local
1817 vfs_check_usecounts(struct mount * mp) vfs_check_usecounts() argument
1835 dounmount_cleanup(struct mount * mp,struct vnode * coveredvp,int mntkflags) dounmount_cleanup() argument
1862 vfs_op_enter(struct mount * mp) vfs_op_enter() argument
1895 vfs_op_exit_locked(struct mount * mp) vfs_op_exit_locked() argument
1909 vfs_op_exit(struct mount * mp) vfs_op_exit() argument
1918 struct mount *mp; global() member
1926 struct mount *mp; vfs_op_action_func() local
1939 struct mount *mp; vfs_op_wait_func() local
1951 vfs_op_barrier_wait(struct mount * mp) vfs_op_barrier_wait() argument
1967 vfs_assert_mount_counters(struct mount * mp) vfs_assert_mount_counters() argument
1985 vfs_dump_mount_counters(struct mount * mp) vfs_dump_mount_counters() argument
2028 vfs_mount_fetch_counter(struct mount * mp,enum mount_counter which) vfs_mount_fetch_counter() argument
2063 deferred_unmount_enqueue(struct mount * mp,uint64_t flags,bool requeue,int timeout_ticks) deferred_unmount_enqueue() argument
2094 struct mount *mp, *tmp; vfs_deferred_unmount() local
2140 dounmount(struct mount * mp,uint64_t flags,struct thread * td) dounmount() argument
2421 vfs_mount_error(struct mount * mp,const char * fmt,...) vfs_mount_error() argument
2751 __vfs_statfs(struct mount * mp,struct statfs * sbp) __vfs_statfs() argument
2772 vfs_mountedfrom(struct mount * mp,const char * from) vfs_mountedfrom() argument
2965 mount_devctl_event(const char * type,struct mount * mp,bool donew) mount_devctl_event() argument
3020 vfs_remount_ro(struct mount * mp) vfs_remount_ro() argument
3114 struct mount *mp; suspend_all_fs() local
3183 struct mount *mp; resume_all_fs() local
[all...]
H A Dvfs_export.c73 static int vfs_hang_addrlist(struct mount *mp, struct netexport *nep,
102 vfs_hang_addrlist(struct mount *mp, struct netexport *nep, in vfs_hang_addrlist()
128 if (mp->mnt_flag & MNT_DEFEXPORTED) { in vfs_hang_addrlist()
129 vfs_mount_error(mp, in vfs_hang_addrlist()
130 "MNT_DEFEXPORTED already set for mount %p", mp); in vfs_hang_addrlist()
144 MNT_ILOCK(mp); in vfs_hang_addrlist()
145 mp->mnt_flag |= MNT_DEFEXPORTED; in vfs_hang_addrlist()
146 MNT_IUNLOCK(mp); in vfs_hang_addrlist()
152 vfs_mount_error(mp, "ex_addrlen %d is greater than %d", in vfs_hang_addrlist()
165 vfs_mount_error(mp, "Invali in vfs_hang_addrlist()
101 vfs_hang_addrlist(struct mount * mp,struct netexport * nep,struct export_args * argp) vfs_hang_addrlist() argument
301 vfs_export(struct mount * mp,struct export_args * argp,bool do_exjail) vfs_export() argument
441 struct mount *mp; vfs_exjail_delete() local
531 vfs_setpublicfs(struct mount * mp,struct netexport * nep,struct export_args * argp) vfs_setpublicfs() argument
613 vfs_export_lookup(struct mount * mp,struct sockaddr * nam) vfs_export_lookup() argument
669 vfs_stdcheckexp(struct mount * mp,struct sockaddr * nam,uint64_t * extflagsp,struct ucred ** credanonp,int * numsecflavors,int * secflavors) vfs_stdcheckexp() argument
[all...]
H A Dvfs_init.c164 vfs_mount_sigdefer(struct mount *mp) in vfs_mount_sigdefer() argument
168 TSRAW(curthread, TS_ENTER, "VFS_MOUNT", mp->mnt_vfc->vfc_name); in vfs_mount_sigdefer()
170 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_mount)(mp); in vfs_mount_sigdefer()
172 TSRAW(curthread, TS_EXIT, "VFS_MOUNT", mp->mnt_vfc->vfc_name); in vfs_mount_sigdefer()
177 vfs_unmount_sigdefer(struct mount *mp, int mntflags) in vfs_unmount_sigdefer() argument
182 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_unmount)(mp, mntflags); in vfs_unmount_sigdefer()
188 vfs_root_sigdefer(struct mount *mp, int flags, struct vnode **vpp) in vfs_root_sigdefer() argument
193 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_root)(mp, flags, vpp); in vfs_root_sigdefer()
199 vfs_cachedroot_sigdefer(struct mount *mp, int flags, struct vnode **vpp) in vfs_cachedroot_sigdefer() argument
204 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_cachedroot)(mp, flags, vpp); in vfs_cachedroot_sigdefer()
[all …]
/freebsd-src/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c116 tmpfs_update_mtime_lazy(struct mount *mp) in tmpfs_update_mtime_lazy() argument
120 MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, tmpfs_update_mtime_lazy_filter, NULL) { in tmpfs_update_mtime_lazy()
129 tmpfs_update_mtime_all(struct mount *mp) in tmpfs_update_mtime_all() argument
133 if (VFS_TO_TMPFS(mp)->tm_nomtime) in tmpfs_update_mtime_all()
135 MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { in tmpfs_update_mtime_all()
153 tmpfs_check_rw_maps_cb(struct mount *mp __unused, vm_map_t map __unused, in tmpfs_check_rw_maps_cb()
168 tmpfs_revoke_rw_maps_cb(struct mount *mp __unused, vm_map_t map, in tmpfs_revoke_rw_maps_cb()
187 tmpfs_all_rw_maps(struct mount *mp, bool (*cb)(struct mount *mp, vm_map_t, in tmpfs_all_rw_maps() argument
247 if (vp->v_mount != mp) { in tmpfs_all_rw_maps()
271 tmpfs_check_rw_maps(struct mount * mp) tmpfs_check_rw_maps() argument
281 tmpfs_rw_to_ro(struct mount * mp) tmpfs_rw_to_ro() argument
322 tmpfs_mount(struct mount * mp) tmpfs_mount() argument
495 tmpfs_unmount(struct mount * mp,int mntflags) tmpfs_unmount() argument
574 tmpfs_root(struct mount * mp,int flags,struct vnode ** vpp) tmpfs_root() argument
585 tmpfs_fhtovp(struct mount * mp,struct fid * fhp,int flags,struct vnode ** vpp) tmpfs_fhtovp() argument
627 tmpfs_statfs(struct mount * mp,struct statfs * sbp) tmpfs_statfs() argument
659 tmpfs_sync(struct mount * mp,int waitfor) tmpfs_sync() argument
712 db_print_tmpfs(struct mount * mp,struct tmpfs_mount * tmp) db_print_tmpfs() argument
730 struct mount *mp; DB_SHOW_COMMAND() local
[all...]
/freebsd-src/sys/fs/nullfs/
H A Dnull_vfsops.c78 nullfs_mount(struct mount *mp) in nullfs_mount() argument
89 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); in nullfs_mount()
91 if (mp->mnt_flag & MNT_ROOTFS) in nullfs_mount()
97 if (mp->mnt_flag & MNT_UPDATE) { in nullfs_mount()
101 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in nullfs_mount()
110 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, &len); in nullfs_mount()
112 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in nullfs_mount()
119 if (mp->mnt_vnodecovered->v_op == &null_vnodeops && in nullfs_mount()
120 VOP_ISLOCKED(mp in nullfs_mount()
251 nullfs_unmount(struct mount * mp,int mntflags) nullfs_unmount() argument
299 nullfs_root(struct mount * mp,int flags,struct vnode ** vpp) nullfs_root() argument
320 nullfs_quotactl(struct mount * mp,int cmd,uid_t uid,void * arg,bool * mp_busy) nullfs_quotactl() argument
351 nullfs_statfs(struct mount * mp,struct statfs * sbp) nullfs_statfs() argument
387 nullfs_sync(struct mount * mp,int waitfor) nullfs_sync() argument
396 nullfs_vget(struct mount * mp,ino_t ino,int flags,struct vnode ** vpp) nullfs_vget() argument
410 nullfs_fhtovp(struct mount * mp,struct fid * fidp,int flags,struct vnode ** vpp) nullfs_fhtovp() argument
422 nullfs_extattrctl(struct mount * mp,int cmd,struct vnode * filename_vp,int namespace,const char * attrname) nullfs_extattrctl() argument
431 nullfs_reclaim_lowervp(struct mount * mp,struct vnode * lowervp) nullfs_reclaim_lowervp() argument
444 nullfs_unlink_lowervp(struct mount * mp,struct vnode * lowervp) nullfs_unlink_lowervp() argument
[all...]
/freebsd-src/sys/fs/unionfs/
H A Dunion_vfsops.c72 unionfs_domount(struct mount *mp) in unionfs_domount() argument
92 UNIONFSDEBUG("unionfs_mount(mp = %p)\n", mp); in unionfs_domount()
104 if (mp->mnt_flag & MNT_ROOTFS) { in unionfs_domount()
105 vfs_mount_error(mp, "Cannot union mount root filesystem"); in unionfs_domount()
112 if (mp->mnt_flag & MNT_UPDATE) { in unionfs_domount()
113 vfs_mount_error(mp, "unionfs does not support mount update"); in unionfs_domount()
120 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in unionfs_domount()
122 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, in unionfs_domount()
125 vfs_mount_error(mp, "Invali in unionfs_domount()
373 unionfs_unmount(struct mount * mp,int mntflags) unionfs_unmount() argument
412 unionfs_root(struct mount * mp,int flags,struct vnode ** vpp) unionfs_root() argument
433 unionfs_quotactl(struct mount * mp,int cmd,uid_t uid,void * arg,bool * mp_busy) unionfs_quotactl() argument
472 unionfs_statfs(struct mount * mp,struct statfs * sbp) unionfs_statfs() argument
528 unionfs_sync(struct mount * mp,int waitfor) unionfs_sync() argument
535 unionfs_vget(struct mount * mp,ino_t ino,int flags,struct vnode ** vpp) unionfs_vget() argument
541 unionfs_fhtovp(struct mount * mp,struct fid * fidp,int flags,struct vnode ** vpp) unionfs_fhtovp() argument
548 unionfs_checkexp(struct mount * mp,struct sockaddr * nam,uint64_t * extflagsp,struct ucred ** credanonp,int * numsecflavors,int * secflavors) unionfs_checkexp() argument
555 unionfs_extattrctl(struct mount * mp,int cmd,struct vnode * filename_vp,int namespace,const char * attrname) unionfs_extattrctl() argument
[all...]
/freebsd-src/contrib/ntp/libntp/lib/isc/pthreads/include/isc/
H A 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-src/sys/ufs/ffs/
H A Dffs_vfsops.c87 static int ffs_sync_lazy(struct mount *mp);
233 ffs_check_blkno(struct mount *mp, ino_t inum, ufs2_daddr_t daddr, int blksize)
240 KASSERT((mp->mnt_flag & MNT_UNTRUSTED) != 0, in ffs_check_blkno()
242 ump = VFSTOUFS(mp); in ffs_check_blkno()
269 "number %jd\n", mp->mnt_stat.f_mntonname, inum, daddr); in ffs_check_blkno()
341 ffs_mount(struct mount *mp)
356 if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) in ffs_mount()
371 vfs_deleteopt(mp->mnt_optnew, "groupquota"); in ffs_mount()
372 vfs_deleteopt(mp->mnt_optnew, "userquota"); in ffs_mount()
374 fspec = vfs_getopts(mp in ffs_mount()
235 ffs_check_blkno(struct mount * mp,ino_t inum,ufs2_daddr_t daddr,int blksize) ffs_check_blkno() argument
343 ffs_mount(struct mount * mp) ffs_mount() argument
751 ffs_reload(struct mount * mp,int flags) ffs_reload() argument
909 ffs_mountfs(struct vnode * odevvp,struct mount * mp,struct thread * td) ffs_mountfs() argument
1359 ffs_unmount(struct mount * mp,int mntflags) ffs_unmount() argument
1476 ffs_flushfiles(struct mount * mp,int flags,struct thread * td) ffs_flushfiles() argument
1559 ffs_statfs(struct mount * mp,struct statfs * sbp) ffs_statfs() argument
1616 ffs_sync_lazy(struct mount * mp) ffs_sync_lazy() argument
1674 ffs_sync(struct mount * mp,int waitfor) ffs_sync() argument
1819 ffs_vget(struct mount * mp,ino_t ino,int flags,struct vnode ** vpp) ffs_vget() argument
1825 ffs_vgetf(struct mount * mp,ino_t ino,int flags,struct vnode ** vpp,int ffs_flags) ffs_vgetf() argument
2042 ffs_fhtovp(struct mount * mp,struct fid * fhp,int flags,struct vnode ** vpp) ffs_fhtovp() argument
2057 ffs_inotovp(struct mount * mp,ino_t ino,uint64_t gen,int lflags,struct vnode ** vpp,int ffs_flags) ffs_inotovp() argument
2252 ffs_extattrctl(struct mount * mp,int cmd,struct vnode * filename_vp,int attrnamespace,const char * attrname) ffs_extattrctl() argument
2579 ffs_own_mount(const struct mount * mp) ffs_own_mount() argument
2595 struct mount *mp; DB_SHOW_COMMAND() local
[all...]
H A Dffs_suspend.c69 ffs_susp_suspended(struct mount *mp) in ffs_susp_suspended() argument
75 ump = VFSTOUFS(mp); in ffs_susp_suspended()
94 struct mount *mp; in ffs_susp_rdwr() local
104 error = devfs_get_cdevpriv((void **)&mp); in ffs_susp_rdwr()
110 ump = VFSTOUFS(mp); in ffs_susp_rdwr()
114 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()
219 ffs_susp_unsuspend(struct mount * mp) ffs_susp_unsuspend() argument
250 struct mount *mp; ffs_susp_dtor() local
279 struct mount *mp; ffs_susp_ioctl() local
[all...]
/freebsd-src/libexec/talkd/
H A Dprocess.c57 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) in process_request() argument
63 rp->type = mp->type; in process_request()
65 if (mp->vers != TALK_VERSION) { in process_request()
66 syslog(LOG_WARNING, "bad protocol version %d", mp->vers); in process_request()
70 mp->id_num = ntohl(mp->id_num); in process_request()
71 mp->addr.sa_family = ntohs(mp->addr.sa_family); in process_request()
72 if (mp->addr.sa_family != AF_INET) { in process_request()
74 mp->addr.sa_family); in process_request()
78 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in process_request()
79 if (mp->ctl_addr.sa_family != AF_INET) { in process_request()
[all …]
/freebsd-src/sys/sys/
H A Dmount.h206 struct mount *mp; /* (c) mount object for upper FS */ member
278 struct vnode *__mnt_vnode_next_all(struct vnode **mvp, struct mount *mp);
279 struct vnode *__mnt_vnode_first_all(struct vnode **mvp, struct mount *mp);
280 void __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp);
282 #define MNT_VNODE_FOREACH_ALL(vp, mp, mvp) \ argument
283 for (vp = __mnt_vnode_first_all(&(mvp), (mp)); \
284 (vp) != NULL; vp = __mnt_vnode_next_all(&(mvp), (mp)))
286 #define MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp) \ argument
288 MNT_ILOCK(mp); \
289 __mnt_vnode_markerfree_all(&(mvp), (mp)); \
304 MNT_VNODE_FOREACH_LAZY(vp,mp,mvp,cb,cbarg) global() argument
309 MNT_VNODE_FOREACH_LAZY_ABORT(mp,mvp) global() argument
312 MNT_ILOCK(mp) global() argument
313 MNT_ITRYLOCK(mp) global() argument
314 MNT_IUNLOCK(mp) global() argument
315 MNT_MTX(mp) global() argument
317 MNT_REF(mp) global() argument
321 MNT_REL(mp) global() argument
522 MNT_SHARED_WRITES(struct mount * mp) MNT_SHARED_WRITES() argument
529 MNT_EXTENDED_SHARED(struct mount * mp) MNT_EXTENDED_SHARED() argument
845 VFS_MOUNT(MP) global() argument
853 VFS_UNMOUNT(MP,FORCE) global() argument
859 VFS_ROOT(MP,FLAGS,VPP) global() argument
865 VFS_CACHEDROOT(MP,FLAGS,VPP) global() argument
871 VFS_QUOTACTL(MP,C,U,A,MP_BUSY) global() argument
877 VFS_STATFS(MP,SBP) global() argument
883 VFS_SYNC(MP,WAIT) global() argument
889 VFS_VGET(MP,INO,FLAGS,VPP) global() argument
895 VFS_FHTOVP(MP,FIDP,FLAGS,VPP) global() argument
901 VFS_CHECKEXP(MP,NAM,EXFLG,CRED,NUMSEC,SEC) global() argument
908 VFS_EXTATTRCTL(MP,C,FN,NS,N) global() argument
914 VFS_SYSCTL(MP,OP,REQ) global() argument
920 VFS_SUSP_CLEAN(MP) global() argument
926 VFS_RECLAIM_LOWERVP(MP,VP) global() argument
932 VFS_UNLINK_LOWERVP(MP,VP) global() argument
938 VFS_PURGE(MP) global() argument
1107 vfs_assert_mount_counters(mp) global() argument
1108 vfs_dump_mount_counters(mp) global() argument
1129 vfs_mount_pcpu(mp) global() argument
1130 vfs_mount_pcpu_remote(mp,cpu) global() argument
1132 vfs_op_thread_entered(mp) global() argument
1138 vfs_op_thread_enter_crit(mp,_mpcpu) global() argument
1152 vfs_op_thread_enter(mp,_mpcpu) global() argument
1161 vfs_op_thread_exit_crit(mp,_mpcpu) global() argument
1168 vfs_op_thread_exit(mp,_mpcpu) global() argument
[all...]
/freebsd-src/sys/fs/nfsclient/
H A Dnfs_clcomsubs.c58 struct mbuf *mp, *mp2; in nfsm_uiombuf() local
70 mp = mp2 = nd->nd_mb; in nfsm_uiombuf()
74 mtod(mp, char *) + mp->m_len, ("nfsm_uiombuf: mcp wrong")); in nfsm_uiombuf()
84 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
87 mp = nfsm_add_ext_pgs(mp, in nfsm_uiombuf()
90 mp->m_epg_pa[nd->nd_bextpg]); in nfsm_uiombuf()
94 NFSMCLGET(mp, M_WAITOK); in nfsm_uiombuf()
96 NFSMGET(mp); in nfsm_uiombuf()
97 mp->m_len = 0; in nfsm_uiombuf()
98 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
[all …]
/freebsd-src/sys/fs/devfs/
H A Ddevfs_vfsops.c66 devfs_mount(struct mount *mp) in devfs_mount() argument
79 if (mp->mnt_flag & MNT_ROOTFS) in devfs_mount()
85 if (mp->mnt_optnew != NULL) { in devfs_mount()
86 if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) in devfs_mount()
89 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in devfs_mount()
92 if (vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0 && in devfs_mount()
93 (vfs_scanopt(mp->mnt_optnew, "ruleset", "%d", in devfs_mount()
95 vfs_mount_error(mp, "%s", in devfs_mount()
109 if (mp->mnt_flag & MNT_UPDATE) { in devfs_mount()
111 fmp = mp->mnt_data; in devfs_mount()
[all …]
/freebsd-src/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c114 cv_wait_common(kcondvar_t *cvp, kmutex_t *mp, int state, int io)
120 ASSERT(mp); in cv_wait_common()
122 ASSERT(mutex_owned(mp)); in cv_wait_common()
127 m = xchg(&cvp->cv_mutex, mp); in cv_wait_common()
129 ASSERT(m == NULL || m == mp); in cv_wait_common()
139 mutex_exit(mp); in cv_wait_common()
162 mutex_enter(mp); in cv_wait_common()
166 __cv_wait(kcondvar_t *cvp, kmutex_t *mp) in cv_wait_common()
168 cv_wait_common(cvp, mp, TASK_UNINTERRUPTIBLE, 0);
173 __cv_wait_io(kcondvar_t *cvp, kmutex_t *mp)
117 cv_wait_common(kcondvar_t * cvp,kmutex_t * mp,int state,int io) cv_wait_common() argument
169 __cv_wait(kcondvar_t * cvp,kmutex_t * mp) __cv_wait() argument
176 __cv_wait_io(kcondvar_t * cvp,kmutex_t * mp) __cv_wait_io() argument
183 __cv_wait_io_sig(kcondvar_t * cvp,kmutex_t * mp) __cv_wait_io_sig() argument
192 __cv_wait_sig(kcondvar_t * cvp,kmutex_t * mp) __cv_wait_sig() argument
201 __cv_wait_idle(kcondvar_t * cvp,kmutex_t * mp) __cv_wait_idle() argument
259 __cv_timedwait_common(kcondvar_t * cvp,kmutex_t * mp,clock_t expire_time,int state,int io) __cv_timedwait_common() argument
319 __cv_timedwait(kcondvar_t * cvp,kmutex_t * mp,clock_t exp_time) __cv_timedwait() argument
327 __cv_timedwait_io(kcondvar_t * cvp,kmutex_t * mp,clock_t exp_time) __cv_timedwait_io() argument
335 __cv_timedwait_sig(kcondvar_t * cvp,kmutex_t * mp,clock_t exp_time) __cv_timedwait_sig() argument
345 __cv_timedwait_idle(kcondvar_t * cvp,kmutex_t * mp,clock_t exp_time) __cv_timedwait_idle() argument
364 __cv_timedwait_hires(kcondvar_t * cvp,kmutex_t * mp,hrtime_t expire_time,hrtime_t res,int state) __cv_timedwait_hires() argument
426 cv_timedwait_hires_common(kcondvar_t * cvp,kmutex_t * mp,hrtime_t tim,hrtime_t res,int flag,int state) cv_timedwait_hires_common() argument
436 cv_timedwait_hires(kcondvar_t * cvp,kmutex_t * mp,hrtime_t tim,hrtime_t res,int flag) cv_timedwait_hires() argument
445 cv_timedwait_sig_hires(kcondvar_t * cvp,kmutex_t * mp,hrtime_t tim,hrtime_t res,int flag) cv_timedwait_sig_hires() argument
457 cv_timedwait_idle_hires(kcondvar_t * cvp,kmutex_t * mp,hrtime_t tim,hrtime_t res,int flag) cv_timedwait_idle_hires() argument
[all...]
/freebsd-src/contrib/ntp/libntp/lib/isc/pthreads/
H A 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-src/sys/fs/fuse/
H A Dfuse_vfsops.c215 fuse_vfs_remount(struct mount *mp, struct thread *td, uint64_t mntopts, in fuse_vfs_remount() argument
219 struct fuse_data *data = fuse_get_mpdata(mp); in fuse_vfs_remount()
226 if ((mp->mnt_flag ^ data->mnt_flag) & cant_update_opts) { in fuse_vfs_remount()
230 data, mp, err); in fuse_vfs_remount()
240 data, mp, err); in fuse_vfs_remount()
247 "device is dead during mount", data, mp, err); in fuse_vfs_remount()
266 fuse_vfsop_fhtovp(struct mount *mp, struct fid *fhp, int flags, in fuse_vfsop_fhtovp() argument
274 if (!(fuse_get_mpdata(mp)->dataflags & FSESS_EXPORT_SUPPORT)) in fuse_vfsop_fhtovp()
277 error = VFS_VGET(mp, ffhp->nid, LK_EXCLUSIVE, &nvp); in fuse_vfsop_fhtovp()
294 fuse_vfsop_mount(struct mount *mp) in fuse_vfsop_mount() argument
470 fuse_vfsop_unmount(struct mount * mp,int mntflags) fuse_vfsop_unmount() argument
533 fuse_vfsop_vget(struct mount * mp,ino_t ino,int flags,struct vnode ** vpp) fuse_vfsop_vget() argument
599 fuse_vfsop_root(struct mount * mp,int lkflags,struct vnode ** vpp) fuse_vfsop_root() argument
635 fuse_vfsop_statfs(struct mount * mp,struct statfs * sbp) fuse_vfsop_statfs() argument
[all...]
/freebsd-src/sys/fs/smbfs/
H A Dsmbfs_vfsops.c130 smbfs_mount(struct mount *mp) in smbfs_mount() argument
144 if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS)) in smbfs_mount()
147 if (vfs_filteropt(mp->mnt_optnew, smbfs_opts)) { in smbfs_mount()
148 vfs_mount_error(mp, "%s", "Invalid option"); in smbfs_mount()
156 if (1 != vfs_scanopt(mp->mnt_optnew, "fd", "%d", &v)) { in smbfs_mount()
157 vfs_mount_error(mp, "No fd option"); in smbfs_mount()
165 vfs_mount_error(mp, "invalid device handle %d %d\n", v, error); in smbfs_mount()
172 mp->mnt_stat.f_iosize = SSTOVC(ssp)->vc_txmax; in smbfs_mount()
173 mp->mnt_data = smp; in smbfs_mount()
177 if (1 != vfs_scanopt(mp->mnt_optnew, in smbfs_mount()
[all …]
/freebsd-src/usr.bin/mail/
H A Dquit.c67 struct message *mp; in quit() local
138 for (mp = &message[0]; mp < &message[msgCount]; mp++) { in quit()
139 if (mp->m_flag & MNEW) { in quit()
140 mp->m_flag &= ~MNEW; in quit()
141 mp->m_flag |= MSTATUS; in quit()
143 if (mp->m_flag & MSTATUS) in quit()
145 if ((mp->m_flag & MTOUCH) == 0) in quit()
146 mp->m_flag |= MPRESERVE; in quit()
147 if ((mp->m_flag & nohold) == 0) in quit()
148 mp->m_flag |= holdbit; in quit()
[all …]
/freebsd-src/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_vfs.c123 struct mount *mp; in mount_snapshot() local
135 * variables will fit in our mp buffers, including the in mount_snapshot()
168 mp = vfs_mount_alloc(vp, vfsp, fspath, vp->v_mount->mnt_cred); in mount_snapshot()
170 mp->mnt_optnew = NULL; in mount_snapshot()
171 vfs_setmntopt(mp, "from", fspec, 0); in mount_snapshot()
172 mp->mnt_optnew = mp->mnt_opt; in mount_snapshot()
173 mp->mnt_opt = NULL; in mount_snapshot()
178 mp->mnt_flag = fsflags & MNT_UPDATEMASK; in mount_snapshot()
182 mp in mount_snapshot()
[all...]
/freebsd-src/tools/test/stress2/misc/
H A Dnullfs18.sh63 eval mp$i=${mntpoint}$i
67 eval mp=\$mp$i
68 [ -d $mp ] || mkdir -p $mp
69 mount | grep $mp | grep -q nullfs && umount -f $mp
73 mount -t nullfs $msrc $mp
74 chmod 777 $mp
75 export RUNDIR=$mp/stress
[all...]
/freebsd-src/stand/libsa/
H A Dzalloc.c88 znalloc(MemPool *mp, uintptr_t bytes, size_t align) in znalloc() argument
108 if (bytes > mp->mp_Size - mp->mp_Used) in znalloc()
111 for (pmn = &mp->mp_First; (mn = *pmn) != NULL; pmn = &mn->mr_Next) { in znalloc()
156 mp->mp_Used += bytes; in znalloc()
172 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument
190 if ((char *)ptr < (char *)mp->mp_Base || in zfree()
191 (char *)ptr + bytes > (char *)mp->mp_End || in zfree()
198 mp->mp_Used -= bytes; in zfree()
200 for (pmn = &mp->mp_First; (mn = *pmn) != NULL; pmn = &mn->mr_Next) { in zfree()
235 if (pmn != &mp->mp_First) { in zfree()
[all …]
/freebsd-src/contrib/netbsd-tests/fs/vfs/
H A Dt_rwtoro.c58 remount_ro(const atf_tc_t *tc, const char *mp, int expected_errno) in remount_ro() argument
72 RL(rump_sys_statvfs1(mp, &sbuf, ST_WAIT)); in remount_ro()
77 mount_args_length = rump_sys_mount(sbuf.f_fstypename, mp, MNT_GETARGS, in remount_ro()
82 error = rump_sys_mount(sbuf.f_fstypename, mp, MNT_UPDATE | MNT_RDONLY, in remount_ro()
129 basic_test(const atf_tc_t *tc, const char *mp, int expected_errno, in basic_test() argument
138 nargs.nulla_target = __UNCONST(mp);; in basic_test()
143 (*pre)(use_layer ? null_mount : mp); in basic_test()
144 remount_ro(tc, mp, expected_errno); in basic_test()
146 (*post)(use_layer ? null_mount : mp); in basic_test()
152 noneopen(const atf_tc_t *tc, const char *mp) in noneopen() argument
[all …]

12345678910>>...44