Home
last modified time | relevance | path

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

12345678910>>...45

/freebsd/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/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dmutex.h50 #define MUTEX(mp) (&((mp)->m_mutex)) argument
53 spl_mutex_set_owner(kmutex_t *mp) in spl_mutex_set_owner() argument
55 mp->m_owner = current; in spl_mutex_set_owner()
59 spl_mutex_clear_owner(kmutex_t *mp) in spl_mutex_clear_owner() argument
61 mp->m_owner = NULL; in spl_mutex_clear_owner()
64 #define mutex_owner(mp) (READ_ONCE((mp)->m_owner)) argument
65 #define mutex_owned(mp) (mutex_owner(mp) == current) argument
66 #define MUTEX_HELD(mp) mutex_owned(mp) argument
67 #define MUTEX_NOT_HELD(mp) (!MUTEX_HELD(mp)) argument
71 spl_mutex_set_type(kmutex_t *mp, kmutex_type_t type) in spl_mutex_set_type() argument
[all …]
/freebsd/sys/kern/
H A Dvfs_mount.c134 static void mount_devctl_event(const char *type, struct mount *mp, bool donew);
153 struct mount *mp; in mount_init() local
155 mp = (struct mount *)mem; in mount_init()
156 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); in mount_init()
157 mtx_init(&mp->mnt_listmtx, "struct mount vlist mtx", NULL, MTX_DEF); in mount_init()
158 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); in mount_init()
159 lockinit(&mp->mnt_renamelock, PVFS, "rename", 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()
[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() argument
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, "Invalid saddr->sa_family: %d"); in vfs_hang_addrlist()
[all …]
H A Dvfs_init.c176 vfs_mount_sigdefer(struct mount *mp) in vfs_mount_sigdefer() argument
180 TSRAW(curthread, TS_ENTER, "VFS_MOUNT", mp->mnt_vfc->vfc_name); in vfs_mount_sigdefer()
182 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_mount)(mp); in vfs_mount_sigdefer()
184 TSRAW(curthread, TS_EXIT, "VFS_MOUNT", mp->mnt_vfc->vfc_name); in vfs_mount_sigdefer()
189 vfs_unmount_sigdefer(struct mount *mp, int mntflags) in vfs_unmount_sigdefer() argument
194 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_unmount)(mp, mntflags); in vfs_unmount_sigdefer()
200 vfs_root_sigdefer(struct mount *mp, int flags, struct vnode **vpp) in vfs_root_sigdefer() argument
205 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_root)(mp, flags, vpp); in vfs_root_sigdefer()
211 vfs_cachedroot_sigdefer(struct mount *mp, int flags, struct vnode **vpp) in vfs_cachedroot_sigdefer() argument
216 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_cachedroot)(mp, flags, vpp); in vfs_cachedroot_sigdefer()
[all …]
/freebsd/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/crypto/krb5/src/plugins/kdb/db2/libdb2/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) __P((void *, db_pgno_t, void *)), in mpool_filter() argument
[all …]
/freebsd/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()
252 terminate = cb(mp, map, entry, cb_arg); in tmpfs_all_rw_maps()
[all …]
/freebsd/sys/fs/nullfs/
H A Dnull_vfsops.c78 nullfs_mount(struct mount *mp) in nullfs_mount() argument
93 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); in nullfs_mount()
95 if (mp->mnt_flag & MNT_ROOTFS) in nullfs_mount()
101 if (mp->mnt_flag & MNT_UPDATE) { in nullfs_mount()
105 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in nullfs_mount()
114 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, &len); in nullfs_mount()
116 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in nullfs_mount()
123 if (null_is_nullfs_vnode(mp->mnt_vnodecovered) && in nullfs_mount()
124 VOP_ISLOCKED(mp->mnt_vnodecovered) == LK_EXCLUSIVE) { in nullfs_mount()
125 VOP_UNLOCK(mp->mnt_vnodecovered); in nullfs_mount()
[all …]
/freebsd/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, "Invalid target"); in unionfs_domount()
128 if (vfs_getopt(mp->mnt_optnew, "below", NULL, NULL) == 0) in unionfs_domount()
[all …]
/freebsd/sys/ufs/ffs/
H A Dffs_vfsops.c87 static int ffs_sync_lazy(struct mount *mp);
239 ffs_check_blkno(struct mount *mp, ino_t inum, ufs2_daddr_t daddr, int blksize) in ffs_check_blkno() argument
246 KASSERT((mp->mnt_flag & MNT_UNTRUSTED) != 0, in ffs_check_blkno()
248 ump = VFSTOUFS(mp); in ffs_check_blkno()
275 "number %jd\n", mp->mnt_stat.f_mntonname, inum, daddr); in ffs_check_blkno()
347 ffs_mount(struct mount *mp) in ffs_mount() argument
362 if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) in ffs_mount()
377 vfs_deleteopt(mp->mnt_optnew, "groupquota"); in ffs_mount()
378 vfs_deleteopt(mp->mnt_optnew, "userquota"); in ffs_mount()
380 fspec = vfs_getopts(mp->mnt_optnew, "from", &error); in ffs_mount()
[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()
[all …]
/freebsd/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/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/sys/sys/
H A Dmount.h210 struct mount *mp; /* (c) mount object for upper FS */ member
283 struct vnode *__mnt_vnode_next_all(struct vnode **mvp, struct mount *mp);
284 struct vnode *__mnt_vnode_first_all(struct vnode **mvp, struct mount *mp);
285 void __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp);
287 #define MNT_VNODE_FOREACH_ALL(vp, mp, mvp) \ argument
288 for (vp = __mnt_vnode_first_all(&(mvp), (mp)); \
289 (vp) != NULL; vp = __mnt_vnode_next_all(&(mvp), (mp)))
291 #define MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp) \ argument
293 MNT_ILOCK(mp); \
294 __mnt_vnode_markerfree_all(&(mvp), (mp)); \
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c115 cv_wait_common(kcondvar_t *cvp, kmutex_t *mp, int state, int io) in cv_wait_common() argument
121 ASSERT(mp); in cv_wait_common()
123 ASSERT(mutex_owned(mp)); in cv_wait_common()
128 m = xchg(&cvp->cv_mutex, mp); in cv_wait_common()
130 ASSERT(m == NULL || m == mp); in cv_wait_common()
140 mutex_exit(mp); in cv_wait_common()
163 mutex_enter(mp); in cv_wait_common()
167 __cv_wait(kcondvar_t *cvp, kmutex_t *mp) in __cv_wait() argument
169 cv_wait_common(cvp, mp, TASK_UNINTERRUPTIBLE, 0); in __cv_wait()
174 __cv_wait_io(kcondvar_t *cvp, kmutex_t *mp) in __cv_wait_io() argument
[all …]
/freebsd/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/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/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/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/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/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_vfs.c124 struct mount *mp; in mount_snapshot() local
136 * variables will fit in our mp buffers, including the in mount_snapshot()
169 mp = vfs_mount_alloc(vp, vfsp, fspath, vp->v_mount->mnt_cred); in mount_snapshot()
171 mp->mnt_optnew = NULL; in mount_snapshot()
172 vfs_setmntopt(mp, "from", fspec, 0); in mount_snapshot()
173 mp->mnt_optnew = mp->mnt_opt; in mount_snapshot()
174 mp->mnt_opt = NULL; in mount_snapshot()
179 mp->mnt_flag = fsflags & MNT_UPDATEMASK; in mount_snapshot()
183 mp->mnt_flag |= MNT_RDONLY; in mount_snapshot()
188 mp->mnt_flag |= MNT_NOSUID; in mount_snapshot()
[all …]
/freebsd/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/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/stressX
76 export CTRLDIR=$mp/stressX.control
81 mps="$mps $mp"
107 eval mp=\$mp$i
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dfmd_api.c103 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register() local
105 mp->mod_info = mip; in fmd_hdl_register()
106 mp->mod_name = mip->fmdi_desc + 4; /* drop 'ZFS ' prefix */ in fmd_hdl_register()
107 mp->mod_spec = NULL; in fmd_hdl_register()
110 (void) strcpy(mp->mod_stats.ms_accepted.fmds_name, "fmd.accepted"); in fmd_hdl_register()
111 (void) strcpy(mp->mod_stats.ms_caseopen.fmds_name, "fmd.caseopen"); in fmd_hdl_register()
112 (void) strcpy(mp->mod_stats.ms_casesolved.fmds_name, "fmd.casesolved"); in fmd_hdl_register()
113 (void) strcpy(mp->mod_stats.ms_caseclosed.fmds_name, "fmd.caseclosed"); in fmd_hdl_register()
115 fmd_serd_hash_create(&mp->mod_serds); in fmd_hdl_register()
125 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister() local
[all …]

12345678910>>...45