m                  47 bsp/boot/common/bootinfo.c print_module(struct module *m)
m                  51 bsp/boot/common/bootinfo.c 	       m->entry, m->phys, m->size,
m                  52 bsp/boot/common/bootinfo.c 	       m->text, m->data, m->textsz,
m                  53 bsp/boot/common/bootinfo.c 	       m->datasz, m->bsssz, m->name);
m                  61 bsp/boot/common/bootinfo.c 	struct module *m;
m                  86 bsp/boot/common/bootinfo.c 	m = (struct module *)&bi->tasks[0];
m                  87 bsp/boot/common/bootinfo.c 	for (i = 0; i < bi->nr_tasks; i++, m++)
m                  88 bsp/boot/common/bootinfo.c 		print_module(m);
m                  53 bsp/boot/common/elf.c load_elf(char *img, struct module *m)
m                  94 bsp/boot/common/elf.c 		if (load_executable(img, m) != 0)
m                  98 bsp/boot/common/elf.c 		if (load_relocatable(img, m) != 0)
m                 110 bsp/boot/common/elf.c load_executable(char *img, struct module *m)
m                 120 bsp/boot/common/elf.c 	m->phys = load_base;
m                 138 bsp/boot/common/elf.c 			m->text = phdr->p_vaddr;
m                 139 bsp/boot/common/elf.c 			m->textsz = (size_t)phdr->p_memsz;
m                 142 bsp/boot/common/elf.c 			m->data = phdr->p_vaddr;
m                 143 bsp/boot/common/elf.c 			m->datasz = (size_t)phdr->p_filesz;
m                 144 bsp/boot/common/elf.c 			m->bsssz =
m                 146 bsp/boot/common/elf.c 			load_base = phys_base + (m->data - m->text);
m                 155 bsp/boot/common/elf.c 			if (m->bsssz > 0) {
m                 157 bsp/boot/common/elf.c 				memset((char *)load_base + m->datasz,
m                 158 bsp/boot/common/elf.c 				       0, m->bsssz);
m                 164 bsp/boot/common/elf.c 	if (m->data == 0)
m                 165 bsp/boot/common/elf.c 		load_base = phys_base + m->textsz;
m                 168 bsp/boot/common/elf.c 	m->size = (size_t)(load_base - m->phys);
m                 169 bsp/boot/common/elf.c 	m->entry = ehdr->e_entry;
m                 170 bsp/boot/common/elf.c 	ELFDBG(("module size=%x entry=%lx\n", m->size, m->entry));
m                 172 bsp/boot/common/elf.c 	if (m->size == 0)
m                 275 bsp/boot/common/elf.c load_relocatable(char *img, struct module *m)
m                 286 bsp/boot/common/elf.c 	m->phys = load_base;
m                 302 bsp/boot/common/elf.c 				m->text = (vaddr_t)ptokv(load_base);
m                 306 bsp/boot/common/elf.c 				if (m->data == 0) {
m                 307 bsp/boot/common/elf.c 					m->data = (vaddr_t)ptokv(load_base +
m                 327 bsp/boot/common/elf.c 			m->bsssz = (size_t)shdr->sh_size;
m                 350 bsp/boot/common/elf.c 	m->textsz = (size_t)(m->data - m->text);
m                 351 bsp/boot/common/elf.c 	m->datasz = (size_t)((char *)ptokv(bss_base) - m->data);
m                 353 bsp/boot/common/elf.c 	load_base = bss_base + m->bsssz;
m                 356 bsp/boot/common/elf.c 	ELFDBG(("module load_base=%lx text=%lx\n", load_base, m->text));
m                 357 bsp/boot/common/elf.c 	m->size = (size_t)(load_base - kvtop(m->text));
m                 358 bsp/boot/common/elf.c 	m->entry = (vaddr_t)ptokv(ehdr->e_entry + m->phys);
m                 359 bsp/boot/common/elf.c 	ELFDBG(("module size=%x entry=%lx\n", m->size, m->entry));
m                 366 bsp/boot/common/elf.c 				DPRINTF(("Relocation error: module=%s\n", m->name));
m                  61 bsp/boot/common/load.c 	struct module *m;
m                 102 bsp/boot/common/load.c 	m = (struct module *)&bi->tasks[0];
m                 124 bsp/boot/common/load.c 		if (load_module((struct ar_hdr *)hdr, m))
m                 127 bsp/boot/common/load.c 		m++;
m                 151 bsp/boot/common/load.c load_module(struct ar_hdr *hdr, struct module *m)
m                 159 bsp/boot/common/load.c 	strlcpy(m->name, hdr->ar_name, sizeof(m->name));
m                 160 bsp/boot/common/load.c 	c = m->name;
m                 166 bsp/boot/common/load.c 		 (paddr_t)hdr, (paddr_t)m, m->name));
m                 168 bsp/boot/common/load.c 	if (load_elf((char *)hdr + sizeof(struct ar_hdr), m))
m                 174 include/sys/signal.h #define sigmask(m)	(1 << ((m)-1))
m                  92 include/sys/stat.h #define	S_ISDIR(m)	((m & 0170000) == 0040000)	/* directory */
m                  93 include/sys/stat.h #define	S_ISCHR(m)	((m & 0170000) == 0020000)	/* char special */
m                  94 include/sys/stat.h #define	S_ISBLK(m)	((m & 0170000) == 0060000)	/* block special */
m                  95 include/sys/stat.h #define	S_ISREG(m)	((m & 0170000) == 0100000)	/* regular file */
m                  96 include/sys/stat.h #define	S_ISFIFO(m)	((m & 0170000) == 0010000 || \
m                  97 include/sys/stat.h 			 (m & 0170000) == 0140000)	/* fifo or socket */
m                  98 include/sys/stat.h #define	S_ISLNK(m)	((m & 0170000) == 0120000)	/* symbolic link */
m                  99 include/sys/stat.h #define	S_ISSOCK(m)	((m & 0170000) == 0010000 || \
m                 100 include/sys/stat.h 			 (m & 0170000) == 0140000)	/* fifo or socket */
m                 101 include/sys/stat.h #define	S_ISWHT(m)	((m & 0170000) == 0160000)	/* whiteout */
m                  97 sys/sync/mutex.c 	mutex_t m;
m                 102 sys/sync/mutex.c 	if ((m = kmem_alloc(sizeof(struct mutex))) == NULL)
m                 105 sys/sync/mutex.c 	event_init(&m->event, "mutex");
m                 106 sys/sync/mutex.c 	m->owner = self;
m                 107 sys/sync/mutex.c 	m->holder = NULL;
m                 108 sys/sync/mutex.c 	m->priority = MINPRI;
m                 110 sys/sync/mutex.c 	if (copyout(&m, mp, sizeof(m))) {
m                 111 sys/sync/mutex.c 		kmem_free(m);
m                 116 sys/sync/mutex.c 	list_insert(&self->mutexes, &m->task_link);
m                 126 sys/sync/mutex.c mutex_deallocate(mutex_t m)
m                 129 sys/sync/mutex.c 	m->owner->nsyncs--;
m                 130 sys/sync/mutex.c 	list_remove(&m->task_link);
m                 131 sys/sync/mutex.c 	kmem_free(m);
m                 141 sys/sync/mutex.c 	mutex_t m;
m                 144 sys/sync/mutex.c 	if (copyin(mp, &m, sizeof(mp))) {
m                 148 sys/sync/mutex.c 	if (!mutex_valid(m)) {
m                 152 sys/sync/mutex.c 	if (m->holder || event_waiting(&m->event)) {
m                 156 sys/sync/mutex.c 	mutex_deallocate(m);
m                 167 sys/sync/mutex.c 	mutex_t m;
m                 170 sys/sync/mutex.c 		m = list_entry(list_first(&task->mutexes),
m                 172 sys/sync/mutex.c 		mutex_deallocate(m);
m                 189 sys/sync/mutex.c 	mutex_t m;
m                 193 sys/sync/mutex.c 	if ((error = mutex_copyin(mp, &m)) != 0) {
m                 198 sys/sync/mutex.c 	if (m->holder == curthread) {
m                 202 sys/sync/mutex.c 		m->locks++;
m                 203 sys/sync/mutex.c 		ASSERT(m->locks != 0);
m                 210 sys/sync/mutex.c 		if (m->holder == NULL)
m                 211 sys/sync/mutex.c 			m->priority = curthread->priority;
m                 216 sys/sync/mutex.c 			curthread->mutex_waiting = m;
m                 222 sys/sync/mutex.c 			rc = sched_sleep(&m->event);
m                 229 sys/sync/mutex.c 		m->locks = 1;
m                 230 sys/sync/mutex.c 		m->holder = curthread;
m                 231 sys/sync/mutex.c 		list_insert(&curthread->mutexes, &m->link);
m                 243 sys/sync/mutex.c 	mutex_t m;
m                 247 sys/sync/mutex.c 	if ((error = mutex_copyin(mp, &m)) != 0) {
m                 252 sys/sync/mutex.c 	if (m->holder == curthread) {
m                 253 sys/sync/mutex.c 		m->locks++;
m                 254 sys/sync/mutex.c 		ASSERT(m->locks != 0);
m                 256 sys/sync/mutex.c 		if (m->holder != NULL)
m                 259 sys/sync/mutex.c 			m->locks = 1;
m                 260 sys/sync/mutex.c 			m->holder = curthread;
m                 261 sys/sync/mutex.c 			list_insert(&curthread->mutexes, &m->link);
m                 275 sys/sync/mutex.c 	mutex_t m;
m                 279 sys/sync/mutex.c 	if ((error = mutex_copyin(mp, &m)) != 0) {
m                 284 sys/sync/mutex.c 	if (m->holder != curthread || m->locks <= 0) {
m                 288 sys/sync/mutex.c 	if (--m->locks == 0) {
m                 289 sys/sync/mutex.c 		list_remove(&m->link);
m                 295 sys/sync/mutex.c 		m->holder = sched_wakeone(&m->event);
m                 296 sys/sync/mutex.c 		if (m->holder)
m                 297 sys/sync/mutex.c 			m->holder->mutex_waiting = NULL;
m                 299 sys/sync/mutex.c 		m->priority = m->holder ? m->holder->priority : MINPRI;
m                 319 sys/sync/mutex.c 	mutex_t m;
m                 330 sys/sync/mutex.c 		m = list_entry(list_first(head), struct mutex, link);
m                 331 sys/sync/mutex.c 		m->locks = 0;
m                 332 sys/sync/mutex.c 		list_remove(&m->link);
m                 338 sys/sync/mutex.c 		holder = sched_wakeone(&m->event);
m                 341 sys/sync/mutex.c 			m->locks = 1;
m                 342 sys/sync/mutex.c 			list_insert(&holder->mutexes, &m->link);
m                 344 sys/sync/mutex.c 		m->holder = holder;
m                 364 sys/sync/mutex.c mutex_valid(mutex_t m)
m                 372 sys/sync/mutex.c 		if (tmp == m)
m                 385 sys/sync/mutex.c 	mutex_t m;
m                 388 sys/sync/mutex.c 	if (copyin(ump, &m, sizeof(ump)))
m                 391 sys/sync/mutex.c 	if (m == MUTEX_INITIALIZER) {
m                 398 sys/sync/mutex.c 		copyin(ump, &m, sizeof(ump));
m                 400 sys/sync/mutex.c 		if (!mutex_valid(m))
m                 403 sys/sync/mutex.c 	*kmp = m;
m                 420 sys/sync/mutex.c 	mutex_t m = waiter->mutex_waiting;
m                 425 sys/sync/mutex.c 		holder = m->holder;
m                 433 sys/sync/mutex.c 				 (long)m, (long)holder, (long)waiter));
m                 443 sys/sync/mutex.c 			m->priority = waiter->priority;
m                 449 sys/sync/mutex.c 		m = (mutex_t)holder->mutex_waiting;
m                 456 sys/sync/mutex.c 	} while (m != NULL);
m                 473 sys/sync/mutex.c 	mutex_t m;
m                 488 sys/sync/mutex.c 		m = list_entry(n, struct mutex, link);
m                 489 sys/sync/mutex.c 		if (m->priority < maxpri)
m                 490 sys/sync/mutex.c 			maxpri = m->priority;
m                  57 usr/bin/ps/ps.c 	static struct msg m;
m                  61 usr/bin/ps/ps.c 		m.hdr.code = PS_PSTAT;
m                  62 usr/bin/ps/ps.c 		m.data[0] = (int)task;
m                  63 usr/bin/ps/ps.c 		rc = msg_send(procobj, &m, sizeof(m));
m                  66 usr/bin/ps/ps.c 	if (rc || m.hdr.status) {
m                  73 usr/bin/ps/ps.c 	pi->pid = m.data[0];
m                  74 usr/bin/ps/ps.c 	pi->ppid = m.data[1];
m                  75 usr/bin/ps/ps.c 	pi->stat = m.data[2];
m                  46 usr/lib/libc/stdio/flags.c 	int ret, m, o;
m                  52 usr/lib/libc/stdio/flags.c 		m = O_RDONLY;
m                  58 usr/lib/libc/stdio/flags.c 		m = O_WRONLY;
m                  64 usr/lib/libc/stdio/flags.c 		m = O_WRONLY;
m                  76 usr/lib/libc/stdio/flags.c 		m = O_RDWR;
m                  78 usr/lib/libc/stdio/flags.c 	*optr = m | o;
m                  61 usr/lib/posix/file/__file.c 	struct msg m;
m                  65 usr/lib/posix/file/__file.c 		m.hdr.code = FS_EXIT;
m                  66 usr/lib/posix/file/__file.c 		msg_send(__fs_obj, &m, sizeof(m));
m                  77 usr/lib/posix/file/__file.c 	struct msg m;
m                  82 usr/lib/posix/file/__file.c 	m.hdr.code = FS_REGISTER;
m                  83 usr/lib/posix/file/__file.c 	msg_send(__fs_obj, &m, sizeof(m));
m                  38 usr/lib/posix/file/access.c 	struct path_msg m;
m                  40 usr/lib/posix/file/access.c 	m.hdr.code = FS_ACCESS;
m                  41 usr/lib/posix/file/access.c 	m.data[0] = mode;
m                  42 usr/lib/posix/file/access.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  43 usr/lib/posix/file/access.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/chdir.c 	struct path_msg m;
m                  47 usr/lib/posix/file/chdir.c 	m.hdr.code = FS_CHDIR;
m                  48 usr/lib/posix/file/chdir.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  49 usr/lib/posix/file/chdir.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  38 usr/lib/posix/file/close.c 	struct msg m;
m                  40 usr/lib/posix/file/close.c 	m.hdr.code = FS_CLOSE;
m                  41 usr/lib/posix/file/close.c 	m.data[0] = fd;
m                  42 usr/lib/posix/file/close.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/closedir.c 	struct msg m;
m                  43 usr/lib/posix/file/closedir.c 	m.hdr.code = FS_CLOSEDIR;
m                  44 usr/lib/posix/file/closedir.c 	m.data[0] = dir->dd_fd;
m                  45 usr/lib/posix/file/closedir.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 0) != 0)
m                  38 usr/lib/posix/file/dup.c 	struct msg m;
m                  40 usr/lib/posix/file/dup.c 	m.hdr.code = FS_DUP;
m                  41 usr/lib/posix/file/dup.c 	m.data[0] = oldfd;
m                  42 usr/lib/posix/file/dup.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  44 usr/lib/posix/file/dup.c 	return m.data[0];
m                  40 usr/lib/posix/file/dup2.c 	struct msg m;
m                  42 usr/lib/posix/file/dup2.c 	m.hdr.code = FS_DUP2;
m                  43 usr/lib/posix/file/dup2.c 	m.data[0] = oldfd;
m                  44 usr/lib/posix/file/dup2.c 	m.data[1] = newfd;
m                  45 usr/lib/posix/file/dup2.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  47 usr/lib/posix/file/dup2.c 	return m.data[0];
m                  40 usr/lib/posix/file/fchdir.c 	struct msg m;
m                  42 usr/lib/posix/file/fchdir.c 	m.hdr.code = FS_FCHDIR;
m                  43 usr/lib/posix/file/fchdir.c 	m.data[0] = fd;
m                  44 usr/lib/posix/file/fchdir.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/fcntl.c 	struct fcntl_msg m;
m                  49 usr/lib/posix/file/fcntl.c 	m.hdr.code = FS_FCNTL;
m                  50 usr/lib/posix/file/fcntl.c 	m.fd = fd;
m                  51 usr/lib/posix/file/fcntl.c 	m.cmd = cmd;
m                  53 usr/lib/posix/file/fcntl.c 		memcpy(&m.lock, (char *)arg, sizeof(struct flock));
m                  55 usr/lib/posix/file/fcntl.c 		m.arg = arg;
m                  57 usr/lib/posix/file/fcntl.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  59 usr/lib/posix/file/fcntl.c 	return m.arg;
m                  41 usr/lib/posix/file/fstat.c 	struct stat_msg m;
m                  43 usr/lib/posix/file/fstat.c 	m.hdr.code = FS_FSTAT;
m                  44 usr/lib/posix/file/fstat.c 	m.fd = fd;
m                  45 usr/lib/posix/file/fstat.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  47 usr/lib/posix/file/fstat.c 	memcpy(st, &m.st, sizeof(struct stat));
m                  38 usr/lib/posix/file/fsync.c 	struct msg m;
m                  40 usr/lib/posix/file/fsync.c 	m.hdr.code = FS_FSYNC;
m                  41 usr/lib/posix/file/fsync.c 	m.data[0] = fd;
m                  42 usr/lib/posix/file/fsync.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  38 usr/lib/posix/file/ftruncate.c 	struct msg m;
m                  40 usr/lib/posix/file/ftruncate.c 	m.hdr.code = FS_FTRUNCATE;
m                  41 usr/lib/posix/file/ftruncate.c 	m.data[0] = fd;
m                  42 usr/lib/posix/file/ftruncate.c 	m.data[1] = length;
m                  43 usr/lib/posix/file/ftruncate.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  41 usr/lib/posix/file/getcwd.c 	struct path_msg m;
m                  47 usr/lib/posix/file/getcwd.c 	m.hdr.code = FS_GETCWD;
m                  48 usr/lib/posix/file/getcwd.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  50 usr/lib/posix/file/getcwd.c 	strlcpy(buf, m.path, PATH_MAX);
m                  42 usr/lib/posix/file/ioctl.c 	struct ioctl_msg m;
m                  75 usr/lib/posix/file/ioctl.c 			*((int *)m.buf) = (int)argp;
m                  77 usr/lib/posix/file/ioctl.c 			memcpy(&m.buf, argp, size);
m                  80 usr/lib/posix/file/ioctl.c 	m.hdr.code = FS_IOCTL;
m                  81 usr/lib/posix/file/ioctl.c 	m.fd = fd;
m                  82 usr/lib/posix/file/ioctl.c 	m.request = cmd;
m                  83 usr/lib/posix/file/ioctl.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 0) != 0)
m                  91 usr/lib/posix/file/ioctl.c 			retval = *((int *)m.buf);
m                  93 usr/lib/posix/file/ioctl.c 			memcpy(argp, &m.buf, size);
m                  38 usr/lib/posix/file/isatty.c 	struct msg m;
m                  40 usr/lib/posix/file/isatty.c 	m.hdr.code = FS_ISATTY;
m                  41 usr/lib/posix/file/isatty.c 	m.data[0] = fd;
m                  42 usr/lib/posix/file/isatty.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  44 usr/lib/posix/file/isatty.c 	return m.data[0];
m                  41 usr/lib/posix/file/link.c 	struct path_msg m;
m                  52 usr/lib/posix/file/link.c 	strlcpy(m.path, oldpath, PATH_MAX);
m                  53 usr/lib/posix/file/link.c 	strlcpy(m.path2, newpath, PATH_MAX);
m                  55 usr/lib/posix/file/link.c 	m.hdr.code = FS_LINK;
m                  56 usr/lib/posix/file/link.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/lseek.c 	struct msg m;
m                  43 usr/lib/posix/file/lseek.c 	m.hdr.code = FS_LSEEK;
m                  44 usr/lib/posix/file/lseek.c 	m.data[0] = fd;
m                  45 usr/lib/posix/file/lseek.c 	m.data[1] = (int)offset;
m                  46 usr/lib/posix/file/lseek.c 	m.data[2] = whence;
m                  47 usr/lib/posix/file/lseek.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  49 usr/lib/posix/file/lseek.c 	return (off_t)m.data[0];
m                  42 usr/lib/posix/file/mkdir.c 	struct open_msg m;
m                  44 usr/lib/posix/file/mkdir.c 	m.hdr.code = FS_MKDIR;
m                  45 usr/lib/posix/file/mkdir.c 	m.flags = 0;
m                  46 usr/lib/posix/file/mkdir.c 	m.mode = mode;
m                  47 usr/lib/posix/file/mkdir.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  48 usr/lib/posix/file/mkdir.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  42 usr/lib/posix/file/mknod.c 	struct open_msg m;
m                  44 usr/lib/posix/file/mknod.c 	m.hdr.code = FS_MKNOD;
m                  45 usr/lib/posix/file/mknod.c 	m.flags = 0;
m                  46 usr/lib/posix/file/mknod.c 	m.mode = mode;
m                  47 usr/lib/posix/file/mknod.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  48 usr/lib/posix/file/mknod.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  42 usr/lib/posix/file/mount.c 	struct mount_msg m;
m                  44 usr/lib/posix/file/mount.c 	strlcpy(m.dev, (char *)dev, PATH_MAX);
m                  45 usr/lib/posix/file/mount.c 	strlcpy(m.dir, (char *)dir, PATH_MAX);
m                  46 usr/lib/posix/file/mount.c 	strlcpy(m.fs, (char *)fs, 16);
m                  48 usr/lib/posix/file/mount.c 		strlcpy(m.data, (char *)data, 64);
m                  49 usr/lib/posix/file/mount.c 	m.flags = flags;
m                  50 usr/lib/posix/file/mount.c 	m.hdr.code = FS_MOUNT;
m                  51 usr/lib/posix/file/mount.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  42 usr/lib/posix/file/open.c 	struct open_msg m;
m                  50 usr/lib/posix/file/open.c 	m.hdr.code = FS_OPEN;
m                  51 usr/lib/posix/file/open.c 	m.flags = flags;
m                  52 usr/lib/posix/file/open.c 	m.mode = mode;
m                  53 usr/lib/posix/file/open.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  54 usr/lib/posix/file/open.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 0) != 0)
m                  56 usr/lib/posix/file/open.c 	return m.fd;
m                  43 usr/lib/posix/file/opendir.c 	struct open_msg m;
m                  49 usr/lib/posix/file/opendir.c 	m.hdr.code = FS_OPENDIR;
m                  50 usr/lib/posix/file/opendir.c 	strlcpy(m.path, (char *)name, PATH_MAX);
m                  51 usr/lib/posix/file/opendir.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  53 usr/lib/posix/file/opendir.c 	dir->dd_fd = m.fd;
m                  38 usr/lib/posix/file/pipe.c 	struct msg m;
m                  40 usr/lib/posix/file/pipe.c 	m.hdr.code = FS_PIPE;
m                  41 usr/lib/posix/file/pipe.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  43 usr/lib/posix/file/pipe.c 	fd[0] = m.data[0];
m                  44 usr/lib/posix/file/pipe.c 	fd[1] = m.data[1];
m                  40 usr/lib/posix/file/read.c 	struct io_msg m;
m                  42 usr/lib/posix/file/read.c 	m.hdr.code = FS_READ;
m                  43 usr/lib/posix/file/read.c 	m.fd = fd;
m                  44 usr/lib/posix/file/read.c 	m.buf = buf;
m                  45 usr/lib/posix/file/read.c 	m.size = len;
m                  46 usr/lib/posix/file/read.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 0) != 0)
m                  48 usr/lib/posix/file/read.c 	return (int)m.size;
m                  42 usr/lib/posix/file/readdir.c 	struct dir_msg m;
m                  45 usr/lib/posix/file/readdir.c 	m.hdr.code = FS_READDIR;
m                  46 usr/lib/posix/file/readdir.c 	m.fd = dir->dd_fd;
m                  47 usr/lib/posix/file/readdir.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  49 usr/lib/posix/file/readdir.c 	memcpy(entry, &m.dirent, sizeof(struct dirent));
m                  41 usr/lib/posix/file/rename.c 	struct path_msg m;
m                  52 usr/lib/posix/file/rename.c 	strlcpy(m.path, oldpath, PATH_MAX);
m                  53 usr/lib/posix/file/rename.c 	strlcpy(m.path2, newpath, PATH_MAX);
m                  54 usr/lib/posix/file/rename.c 	m.hdr.code = FS_RENAME;
m                  55 usr/lib/posix/file/rename.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/rewinddir.c 	struct msg m;
m                  43 usr/lib/posix/file/rewinddir.c 	m.hdr.code = FS_REWINDDIR;
m                  44 usr/lib/posix/file/rewinddir.c 	m.data[0] = dir->dd_fd;
m                  45 usr/lib/posix/file/rewinddir.c 	__posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/rmdir.c 	struct path_msg m;
m                  51 usr/lib/posix/file/rmdir.c 	m.hdr.code = FS_RMDIR;
m                  52 usr/lib/posix/file/rmdir.c 	strlcpy(m.path, path, PATH_MAX);
m                  53 usr/lib/posix/file/rmdir.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  42 usr/lib/posix/file/stat.c 	struct stat_msg m;
m                  44 usr/lib/posix/file/stat.c 	m.hdr.code = FS_STAT;
m                  45 usr/lib/posix/file/stat.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  46 usr/lib/posix/file/stat.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  48 usr/lib/posix/file/stat.c 	memcpy(st, &m.st, sizeof(struct stat));
m                  40 usr/lib/posix/file/sync.c 	struct msg m;
m                  42 usr/lib/posix/file/sync.c 	m.hdr.code = FS_SYNC;
m                  43 usr/lib/posix/file/sync.c 	__posix_call(__fs_obj, &m, sizeof(m), 1);
m                  40 usr/lib/posix/file/truncate.c 	struct path_msg m;
m                  42 usr/lib/posix/file/truncate.c 	m.hdr.code = FS_TRUNCATE;
m                  43 usr/lib/posix/file/truncate.c 	m.data[0] = length;
m                  44 usr/lib/posix/file/truncate.c 	strlcpy(m.path, (char *)path, PATH_MAX);
m                  45 usr/lib/posix/file/truncate.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  42 usr/lib/posix/file/umount.c 	struct path_msg m;
m                  44 usr/lib/posix/file/umount.c 	m.hdr.code = FS_UMOUNT;
m                  45 usr/lib/posix/file/umount.c 	strlcpy(m.path, (char *)dir, PATH_MAX);
m                  46 usr/lib/posix/file/umount.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  41 usr/lib/posix/file/unlink.c 	struct path_msg m;
m                  47 usr/lib/posix/file/unlink.c 	m.hdr.code = FS_UNLINK;
m                  48 usr/lib/posix/file/unlink.c 	strlcpy(m.path, path, PATH_MAX);
m                  49 usr/lib/posix/file/unlink.c 	return __posix_call(__fs_obj, &m, sizeof(m), 1);
m                  39 usr/lib/posix/file/write.c 	struct io_msg m;
m                  41 usr/lib/posix/file/write.c 	m.hdr.code = FS_WRITE;
m                  42 usr/lib/posix/file/write.c 	m.fd = fd;
m                  43 usr/lib/posix/file/write.c 	m.buf = buf;
m                  44 usr/lib/posix/file/write.c 	m.size = len;
m                  45 usr/lib/posix/file/write.c 	if (__posix_call(__fs_obj, &m, sizeof(m), 0) != 0)
m                  47 usr/lib/posix/file/write.c 	return (int)m.size;
m                  56 usr/lib/posix/process/__process.c 	struct msg m;
m                  60 usr/lib/posix/process/__process.c 		m.hdr.code = PS_EXIT;
m                  61 usr/lib/posix/process/__process.c 		m.data[0] = signo ? signo : ((status & 0xff) << 8);
m                  62 usr/lib/posix/process/__process.c 		msg_send(__proc_obj, &m, sizeof(m));
m                  85 usr/lib/posix/process/fork.c 	struct msg m;
m                 109 usr/lib/posix/process/fork.c 		m.hdr.code = PS_FORK;
m                 110 usr/lib/posix/process/fork.c 		m.data[0] = tsk;		/* child task */
m                 111 usr/lib/posix/process/fork.c 		m.data[1] = 0;			/* fork type */
m                 112 usr/lib/posix/process/fork.c 		if (__posix_call(__proc_obj, &m, sizeof(m), 1) != 0)
m                 114 usr/lib/posix/process/fork.c 		pid = m.data[0];
m                 119 usr/lib/posix/process/fork.c 		m.hdr.code = FS_FORK;
m                 120 usr/lib/posix/process/fork.c 		m.data[0] = tsk;		/* child task */
m                 121 usr/lib/posix/process/fork.c 		if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                  87 usr/lib/posix/process/fork_nommu.c 	struct msg m;
m                 110 usr/lib/posix/process/fork_nommu.c 		m.hdr.code = FS_FORK;
m                 111 usr/lib/posix/process/fork_nommu.c 		m.data[0] = tsk;		/* child task */
m                 112 usr/lib/posix/process/fork_nommu.c 		if (__posix_call(__fs_obj, &m, sizeof(m), 1) != 0)
m                 118 usr/lib/posix/process/fork_nommu.c 		m.hdr.code = PS_FORK;
m                 119 usr/lib/posix/process/fork_nommu.c 		m.data[0] = tsk;		/* child task */
m                 120 usr/lib/posix/process/fork_nommu.c 		m.data[1] = 1;			/* fork type */
m                 121 usr/lib/posix/process/fork_nommu.c 		if (__posix_call(__proc_obj, &m, sizeof(m), 1) != 0)
m                 123 usr/lib/posix/process/fork_nommu.c 		__child_pid = m.data[0];
m                  41 usr/lib/posix/process/getpgid.c 	struct msg m;
m                  43 usr/lib/posix/process/getpgid.c 	m.hdr.code = PS_GETPGID;
m                  44 usr/lib/posix/process/getpgid.c 	m.data[0] = pid;
m                  45 usr/lib/posix/process/getpgid.c 	if (__posix_call(__proc_obj, &m, sizeof(m), 1))
m                  48 usr/lib/posix/process/getpgid.c 	return m.data[0];
m                  42 usr/lib/posix/process/getpid.c 	struct msg m;
m                  44 usr/lib/posix/process/getpid.c 	m.hdr.code = PS_GETPID;
m                  45 usr/lib/posix/process/getpid.c 	__posix_call(__proc_obj, &m, sizeof(m), 1);
m                  49 usr/lib/posix/process/getpid.c 	return m.data[0];
m                  42 usr/lib/posix/process/getppid.c 	struct msg m;
m                  44 usr/lib/posix/process/getppid.c 	m.hdr.code = PS_GETPPID;
m                  45 usr/lib/posix/process/getppid.c 	__posix_call(__proc_obj, &m, sizeof(m), 1);
m                  50 usr/lib/posix/process/getppid.c 	return m.data[0];
m                  41 usr/lib/posix/process/getsid.c 	struct msg m;
m                  43 usr/lib/posix/process/getsid.c 	m.hdr.code = PS_GETSID;
m                  44 usr/lib/posix/process/getsid.c 	m.data[0] = pid;
m                  45 usr/lib/posix/process/getsid.c 	if (__posix_call(__proc_obj, &m, sizeof(m), 1))
m                  47 usr/lib/posix/process/getsid.c 	return m.data[0];
m                  43 usr/lib/posix/process/kill.c 	struct msg m;
m                  49 usr/lib/posix/process/kill.c 	m.hdr.code = PS_KILL;
m                  50 usr/lib/posix/process/kill.c 	m.data[0] = pid;
m                  51 usr/lib/posix/process/kill.c 	m.data[1] = sig;
m                  52 usr/lib/posix/process/kill.c 	error = msg_send(__proc_obj, &m, sizeof(m));
m                  59 usr/lib/posix/process/kill.c 	if (m.hdr.status) {
m                  60 usr/lib/posix/process/kill.c 		errno = m.hdr.status;
m                  42 usr/lib/posix/process/setpgid.c 	struct msg m;
m                  44 usr/lib/posix/process/setpgid.c 	m.hdr.code = PS_SETPGID;
m                  45 usr/lib/posix/process/setpgid.c 	m.data[0] = pid;
m                  46 usr/lib/posix/process/setpgid.c 	m.data[1] = pgid;
m                  47 usr/lib/posix/process/setpgid.c 	return __posix_call(__proc_obj, &m, sizeof(m), 1);
m                  42 usr/lib/posix/process/setsid.c 	struct msg m;
m                  44 usr/lib/posix/process/setsid.c 	m.hdr.code = PS_SETSID;
m                  45 usr/lib/posix/process/setsid.c 	if (__posix_call(__proc_obj, &m, sizeof(m), 1))
m                  47 usr/lib/posix/process/setsid.c 	return m.data[0];
m                  48 usr/lib/posix/process/waitpid.c 	struct msg m;
m                  59 usr/lib/posix/process/waitpid.c 		m.hdr.code = PS_WAITPID;
m                  60 usr/lib/posix/process/waitpid.c 		m.data[0] = pid;
m                  61 usr/lib/posix/process/waitpid.c 		m.data[1] = options;
m                  62 usr/lib/posix/process/waitpid.c 		error = msg_send(__proc_obj, &m, sizeof(m));
m                  66 usr/lib/posix/process/waitpid.c 		if (m.hdr.status) {
m                  67 usr/lib/posix/process/waitpid.c 			errno = m.hdr.status;
m                  70 usr/lib/posix/process/waitpid.c 		child = m.data[0];
m                  83 usr/lib/posix/process/waitpid.c 		*status = m.data[1];
m                  53 usr/sbin/debug/debug.c 	struct msg m;
m                  62 usr/sbin/debug/debug.c 	m.hdr.code = STD_DEBUG;
m                  63 usr/sbin/debug/debug.c 	msg_send(obj, &m, sizeof(m));
m                  46 usr/sbin/ktrace/ktrace.c 	struct msg m;
m                  61 usr/sbin/ktrace/ktrace.c 	m.hdr.code = PS_TRACE;
m                  62 usr/sbin/ktrace/ktrace.c 	msg_send(obj, &m, sizeof(m));
m                 122 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 127 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_SET_POWER;
m                 128 usr/sbin/pmctrl/pmctrl.c 	m.data[0] = PWR_OFF;
m                 129 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 137 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 142 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_SET_POWER;
m                 143 usr/sbin/pmctrl/pmctrl.c 	m.data[0] = PWR_REBOOT;
m                 144 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 152 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 157 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_SET_POWER;
m                 158 usr/sbin/pmctrl/pmctrl.c 	m.data[0] = PWR_SUSPEND;
m                 159 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 167 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 171 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_GET_POLICY;
m                 172 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 173 usr/sbin/pmctrl/pmctrl.c 	policy = m.data[0];
m                 177 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_GET_SUSTMR;
m                 178 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 179 usr/sbin/pmctrl/pmctrl.c 	timeout = m.data[0];
m                 182 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_GET_DIMTMR;
m                 183 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 184 usr/sbin/pmctrl/pmctrl.c 	timeout = m.data[0];
m                 191 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 199 usr/sbin/pmctrl/pmctrl.c 		m.data[0] = PM_PERFORMANCE;
m                 201 usr/sbin/pmctrl/pmctrl.c 		m.data[0] = PM_POWERSAVE;
m                 206 usr/sbin/pmctrl/pmctrl.c 	m.hdr.code = POW_SET_POLICY;
m                 207 usr/sbin/pmctrl/pmctrl.c 	msg_send(powobj, &m, sizeof(m));
m                 213 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 221 usr/sbin/pmctrl/pmctrl.c 		m.hdr.code = POW_SET_SUSTMR;
m                 222 usr/sbin/pmctrl/pmctrl.c 		m.data[0] = timeout;
m                 223 usr/sbin/pmctrl/pmctrl.c 		msg_send(powobj, &m, sizeof(m));
m                 230 usr/sbin/pmctrl/pmctrl.c 	struct msg m;
m                 238 usr/sbin/pmctrl/pmctrl.c 		m.hdr.code = POW_SET_DIMTMR;
m                 239 usr/sbin/pmctrl/pmctrl.c 		m.data[0] = timeout;
m                 240 usr/sbin/pmctrl/pmctrl.c 		msg_send(powobj, &m, sizeof(m));
m                 112 usr/server/boot/boot.c 	struct msg m;
m                 115 usr/server/boot/boot.c 	m.hdr.code = STD_BOOT;
m                 116 usr/server/boot/boot.c 	error = msg_send(obj, &m, sizeof(m));
m                 270 usr/server/boot/boot.c 	struct msg m;
m                 304 usr/server/boot/boot.c 	m.hdr.code = PS_SETINIT;
m                 305 usr/server/boot/boot.c 	msg_send(procobj, &m, sizeof(m));
m                 414 usr/server/exec/exec_execve.c 	struct msg m;
m                 426 usr/server/exec/exec_execve.c 		m.hdr.code = FS_EXEC;
m                 427 usr/server/exec/exec_execve.c 		m.data[0] = (int)org_task;
m                 428 usr/server/exec/exec_execve.c 		m.data[1] = (int)new_task;
m                 429 usr/server/exec/exec_execve.c 		error = msg_send(fsobj, &m, sizeof(m));
m                 434 usr/server/exec/exec_execve.c 		m.hdr.code = PS_EXEC;
m                 435 usr/server/exec/exec_execve.c 		m.data[0] = (int)org_task;
m                 436 usr/server/exec/exec_execve.c 		m.data[1] = (int)new_task;
m                 437 usr/server/exec/exec_execve.c 		m.data[2] = (int)stack;
m                 438 usr/server/exec/exec_execve.c 		error = msg_send(procobj, &m, sizeof(m));
m                  81 usr/server/exec/main.c 	struct msg m;
m                  89 usr/server/exec/main.c 	m.hdr.code = PS_REGISTER;
m                  90 usr/server/exec/main.c 	msg_send(obj, &m, sizeof(m));
m                  52 usr/server/fs/arfs/arfs.h #define mutex_init(m)		do {} while (0)
m                  53 usr/server/fs/arfs/arfs.h #define mutex_destroy(m)	do {} while (0)
m                  54 usr/server/fs/arfs/arfs.h #define mutex_lock(m)		do {} while (0)
m                  55 usr/server/fs/arfs/arfs.h #define mutex_unlock(m)		do {} while (0)
m                  56 usr/server/fs/arfs/arfs.h #define mutex_trylock(m)	do {} while (0)
m                  52 usr/server/fs/devfs/devfs.h #define mutex_init(m)		do {} while (0)
m                  53 usr/server/fs/devfs/devfs.h #define mutex_destroy(m)	do {} while (0)
m                  54 usr/server/fs/devfs/devfs.h #define mutex_lock(m)		do {} while (0)
m                  55 usr/server/fs/devfs/devfs.h #define mutex_unlock(m)		do {} while (0)
m                  56 usr/server/fs/devfs/devfs.h #define mutex_trylock(m)	do {} while (0)
m                  57 usr/server/fs/fatfs/fatfs.h #define mutex_init(m)		do {} while (0)
m                  58 usr/server/fs/fatfs/fatfs.h #define mutex_destroy(m)	do {} while (0)
m                  59 usr/server/fs/fatfs/fatfs.h #define mutex_lock(m)		do {} while (0)
m                  60 usr/server/fs/fatfs/fatfs.h #define mutex_unlock(m)		do {} while (0)
m                  61 usr/server/fs/fatfs/fatfs.h #define mutex_trylock(m)	do {} while (0)
m                  52 usr/server/fs/fifofs/fifo.h #define mutex_init(m)		do {} while (0)
m                  53 usr/server/fs/fifofs/fifo.h #define mutex_destroy(m)	do {} while (0)
m                  54 usr/server/fs/fifofs/fifo.h #define mutex_lock(m)		do {} while (0)
m                  55 usr/server/fs/fifofs/fifo.h #define mutex_unlock(m)		do {} while (0)
m                  56 usr/server/fs/fifofs/fifo.h #define mutex_trylock(m)	do {} while (0)
m                  51 usr/server/fs/ramfs/ramfs.h #define mutex_init(m)		do {} while (0)
m                  52 usr/server/fs/ramfs/ramfs.h #define mutex_destroy(m)	do {} while (0)
m                  53 usr/server/fs/ramfs/ramfs.h #define mutex_lock(m)		do {} while (0)
m                  54 usr/server/fs/ramfs/ramfs.h #define mutex_unlock(m)		do {} while (0)
m                  55 usr/server/fs/ramfs/ramfs.h #define mutex_trylock(m)	do {} while (0)
m                 852 usr/server/fs/vfs/main.c 	struct msg m;
m                 873 usr/server/fs/vfs/main.c 	m.hdr.code = PS_REGISTER;
m                 874 usr/server/fs/vfs/main.c 	msg_send(procobj, &m, sizeof(m));
m                  71 usr/server/fs/vfs/vfs.h #define mutex_init(m)		do {} while (0)
m                  72 usr/server/fs/vfs/vfs.h #define mutex_destroy(m)	do {} while (0)
m                  73 usr/server/fs/vfs/vfs.h #define mutex_lock(m)		do {} while (0)
m                  74 usr/server/fs/vfs/vfs.h #define mutex_unlock(m)		do {} while (0)
m                  75 usr/server/fs/vfs/vfs.h #define mutex_trylock(m)	do {} while (0)
m                 314 usr/server/fs/vfs/vfs_mount.c 	mount_t m, tmp;
m                 323 usr/server/fs/vfs/vfs_mount.c 	m = NULL;
m                 330 usr/server/fs/vfs/vfs_mount.c 			m = tmp;
m                 334 usr/server/fs/vfs/vfs_mount.c 	if (m == NULL)
m                 339 usr/server/fs/vfs/vfs_mount.c 	*mp = m;
m                 326 usr/server/pow/pow.c 	struct msg m;
m                 334 usr/server/pow/pow.c 	m.hdr.code = PS_REGISTER;
m                 335 usr/server/pow/pow.c 	msg_send(obj, &m, sizeof(m));
m                 368 usr/server/pow/pow.c 	struct msg m;
m                 377 usr/server/pow/pow.c 	m.hdr.code = STD_SHUTDOWN;
m                 378 usr/server/pow/pow.c 	error = msg_send(obj, &m, sizeof(m));
m                 409 usr/server/proc/main.c 	struct bind_msg m;
m                 423 usr/server/proc/main.c 	m.hdr.code = EXEC_BINDCAP;
m                 424 usr/server/proc/main.c 	strlcpy(m.path, "/boot/proc", sizeof(m.path));
m                 425 usr/server/proc/main.c 	msg_send(obj, &m, sizeof(m));
m                  90 usr/test/fileio/fileio.c 	struct msg m;
m                  93 usr/test/fileio/fileio.c 	m.hdr.code = 0x300;
m                  94 usr/test/fileio/fileio.c 	msg_send(fsobj, &m, sizeof(m));
m                  95 usr/test/shutdown/shutdown.c 	struct msg m;
m                 101 usr/test/shutdown/shutdown.c 	m.hdr.code = POW_SET_POWER;
m                 102 usr/test/shutdown/shutdown.c 	m.data[0] = reboot ? PWR_REBOOT : PWR_OFF;
m                 103 usr/test/shutdown/shutdown.c 	error = msg_send(powobj, &m, sizeof(m));