Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137246937
D35778.id108042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
942 B
Referenced Files
None
Subscribers
None
D35778.id108042.diff
View Options
Index: sys/vm/vm_mmap.c
===================================================================
--- sys/vm/vm_mmap.c
+++ sys/vm/vm_mmap.c
@@ -1454,13 +1454,6 @@
return (0);
}
-/*
- * vm_mmap()
- *
- * Internal version of mmap used by exec, sys5 shared memory, and
- * various device drivers. Handle is either a vnode pointer, a
- * character device, or NULL for MAP_ANON.
- */
int
vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot,
vm_prot_t maxprot, int flags,
@@ -1479,9 +1472,6 @@
object = NULL;
writecounted = FALSE;
- /*
- * Lookup/allocate object.
- */
switch (handle_type) {
case OBJT_DEVICE: {
struct cdevsw *dsw;
@@ -1501,12 +1491,6 @@
error = vm_mmap_vnode(td, size, prot, &maxprot, &flags,
handle, &foff, &object, &writecounted);
break;
- case OBJT_DEFAULT:
- if (handle == NULL) {
- error = 0;
- break;
- }
- /* FALLTHROUGH */
default:
error = EINVAL;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 22, 7:18 PM (3 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25984233
Default Alt Text
D35778.id108042.diff (942 B)
Attached To
Mode
D35778: vm_mmap: Remove obsolete code and comments from vm_mmap()
Attached
Detach File
Event Timeline
Log In to Comment