Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d8afc203
Commit
d8afc203
authored
Jan 18, 2003
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ported a cleanup from 2.4.
parent
6077eb5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/um/kernel/skas/mem_user.c
arch/um/kernel/skas/mem_user.c
+3
-3
No files found.
arch/um/kernel/skas/mem_user.c
View file @
d8afc203
...
...
@@ -33,7 +33,7 @@ void map(int fd, unsigned long virt, unsigned long phys, unsigned long len,
.
fd
=
region
->
fd
,
.
offset
=
phys_offset
(
phys
)
}
}
}
);
n
=
os_write_file
(
fd
,
(
char
*
)
&
map
,
sizeof
(
map
));
n
=
os_write_file
(
fd
,
&
map
,
sizeof
(
map
));
if
(
n
!=
sizeof
(
map
))
printk
(
"map : /proc/mm map failed, errno = %d
\n
"
,
errno
);
}
...
...
@@ -48,7 +48,7 @@ int unmap(int fd, void *addr, int len)
{
.
munmap
=
{
.
addr
=
(
unsigned
long
)
addr
,
.
len
=
len
}
}
}
);
n
=
os_write_file
(
fd
,
(
char
*
)
&
unmap
,
sizeof
(
unmap
));
n
=
os_write_file
(
fd
,
&
unmap
,
sizeof
(
unmap
));
if
((
n
!=
0
)
&&
(
n
!=
sizeof
(
unmap
)))
return
(
-
errno
);
return
(
0
);
...
...
@@ -70,7 +70,7 @@ int protect(int fd, unsigned long addr, unsigned long len, int r, int w,
.
len
=
len
,
.
prot
=
prot
}
}
}
);
n
=
os_write_file
(
fd
,
(
char
*
)
&
protect
,
sizeof
(
protect
));
n
=
os_write_file
(
fd
,
&
protect
,
sizeof
(
protect
));
if
((
n
!=
0
)
&&
(
n
!=
sizeof
(
protect
))){
if
(
must_succeed
)
panic
(
"protect failed, errno = %d"
,
errno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment