Lines Matching refs:flags
146 int flags;
186 flags = uap->flags;
213 if ((flags & MAP_JIT) && ((flags & MAP_FIXED) || (flags & MAP_SHARED) || !(flags & MAP_ANON))){
220 if (flags & MAP_FIXED) {
247 if (flags & MAP_ANON) {
254 error = mac_proc_check_map_anon(p, user_addr, user_size, prot, flags, &maxprot);
266 * Use "fd" to pass (some) Mach VM allocation flags,
272 /* reject if there are any extra flags */
284 if (flags & MAP_JIT)
299 uap->flags = flags;
366 if ((flags & MAP_SHARED) != 0) {
402 fp->f_fglob, prot, flags, &maxprot);
445 if ((flags & MAP_FIXED) == 0) {
469 if (flags & MAP_NOCACHE)
472 if (flags & MAP_JIT){
502 (flags & MAP_SHARED) ?
511 if ((result == KERN_NO_SPACE) && ((flags & MAP_FIXED) == 0) && user_addr && (num_retries++ == 0)) {
545 if ((flags & (MAP_ANON|MAP_SHARED)) == 0) {
571 (flags & MAP_SHARED) ?
580 if ((result == KERN_NO_SPACE) && ((flags & MAP_FIXED) == 0) && user_addr && (num_retries++ == 0)) {
636 int flags;
659 flags = uap->flags;
660 /* disallow contradictory flags */
661 if ((flags & (MS_SYNC|MS_ASYNC)) == (MS_SYNC|MS_ASYNC))
664 if (flags & MS_KILLPAGES)
666 if (flags & MS_DEACTIVATE)
668 if (flags & MS_INVALIDATE)
671 if ( !(flags & (MS_KILLPAGES | MS_DEACTIVATE))) {
672 if (flags & MS_ASYNC)