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
a6ac2f91
Commit
a6ac2f91
authored
Aug 15, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add sys_fadvise64{,_64} syscall entries.
parent
b61d534d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
10 deletions
+22
-10
arch/sparc/kernel/systbls.S
arch/sparc/kernel/systbls.S
+2
-2
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+11
-0
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+4
-4
include/asm-sparc/unistd.h
include/asm-sparc/unistd.h
+2
-2
include/asm-sparc64/unistd.h
include/asm-sparc64/unistd.h
+2
-2
include/linux/mm.h
include/linux/mm.h
+1
-0
No files found.
arch/sparc/kernel/systbls.S
View file @
a6ac2f91
...
...
@@ -59,8 +59,8 @@ sys_call_table:
/*
190
*/
.
long
sys_init_module
,
sys_personality
,
sparc_remap_file_pages
,
sys_epoll_create
,
sys_epoll_ctl
/*
195
*/
.
long
sys_epoll_wait
,
sys_nis_syscall
,
sys_getppid
,
sparc_sigaction
,
sys_sgetmask
/*
200
*/
.
long
sys_ssetmask
,
sys_sigsuspend
,
sys_newlstat
,
sys_uselib
,
old_readdir
/*
205
*/
.
long
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_
nis_syscall
/*
210
*/
.
long
sys_
nis_syscall
,
sys_nis_syscall
,
sys_waitpid
,
sys_swapoff
,
sys_sysinfo
/*
205
*/
.
long
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_
fadvise64
/*
210
*/
.
long
sys_
fadvise64_64
,
sys_nis_syscall
,
sys_waitpid
,
sys_swapoff
,
sys_sysinfo
/*
215
*/
.
long
sys_ipc
,
sys_sigreturn
,
sys_clone
,
sys_nis_syscall
,
sys_adjtimex
/*
220
*/
.
long
sys_sigprocmask
,
sys_ni_syscall
,
sys_delete_module
,
sys_ni_syscall
,
sys_getpgid
/*
225
*/
.
long
sys_bdflush
,
sys_sysfs
,
sys_nis_syscall
,
sys_setfsuid16
,
sys_setfsgid16
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
a6ac2f91
...
...
@@ -2507,6 +2507,17 @@ asmlinkage compat_ssize_t sys32_readahead(int fd, u32 offhi, u32 offlo, s32 coun
return
sys_readahead
(
fd
,
((
loff_t
)
AA
(
offhi
)
<<
32
)
|
AA
(
offlo
),
count
);
}
long
sys32_fadvise64
(
int
fd
,
u32
offhi
,
u32
offlo
,
s32
len
,
int
advice
)
{
return
sys_fadvise64_64
(
fd
,
((
loff_t
)
AA
(
offhi
)
<<
32
)
|
AA
(
offlo
),
len
,
advice
);
}
long
sys32_fadvise64_64
(
int
fd
,
u32
offhi
,
u32
offlo
,
u32
lenhi
,
u32
lenlo
,
int
advice
)
{
return
sys_fadvise64_64
(
fd
,
((
loff_t
)
AA
(
offhi
)
<<
32
)
|
AA
(
offlo
),
((
loff_t
)
AA
(
lenhi
)
<<
32
)
|
AA
(
lenlo
),
advice
);
}
extern
asmlinkage
ssize_t
sys_sendfile
(
int
out_fd
,
int
in_fd
,
off_t
*
offset
,
size_t
count
);
asmlinkage
int
sys32_sendfile
(
int
out_fd
,
int
in_fd
,
compat_off_t
*
offset
,
s32
count
)
...
...
arch/sparc64/kernel/systbls.S
View file @
a6ac2f91
...
...
@@ -60,8 +60,8 @@ sys_call_table32:
/*
190
*/
.
word
sys32_init_module
,
sparc64_personality
,
sys_remap_file_pages
,
sys_epoll_create
,
sys_epoll_ctl
.
word
sys_epoll_wait
,
sys_nis_syscall
,
sys_getppid
,
sys32_sigaction
,
sys_sgetmask
/*
200
*/
.
word
sys_ssetmask
,
sys_sigsuspend
,
compat_sys_newlstat
,
sys_uselib
,
old32_readdir
.
word
sys32_readahead
,
sys32_socketcall
,
sys_syslog
,
sys32_lookup_dcookie
,
sys
_nis_syscall
/*
210
*/
.
word
sys
_nis_syscall
,
sys_nis_syscall
,
sys_waitpid
,
sys_swapoff
,
sys32_sysinfo
.
word
sys32_readahead
,
sys32_socketcall
,
sys_syslog
,
sys32_lookup_dcookie
,
sys
32_fadvise64
/*
210
*/
.
word
sys
32_fadvise64_64
,
sys_nis_syscall
,
sys_waitpid
,
sys_swapoff
,
sys32_sysinfo
.
word
sys32_ipc
,
sys32_sigreturn
,
sys_clone
,
sys_nis_syscall
,
sys32_adjtimex
/*
220
*/
.
word
compat_sys_sigprocmask
,
sys_ni_syscall
,
sys32_delete_module
,
sys_ni_syscall
,
sys_getpgid
.
word
sys32_bdflush
,
sys32_sysfs
,
sys_nis_syscall
,
sys32_setfsuid16
,
sys32_setfsgid16
...
...
@@ -119,8 +119,8 @@ sys_call_table:
/*
190
*/
.
word
sys_init_module
,
sparc64_personality
,
sys_remap_file_pages
,
sys_epoll_create
,
sys_epoll_ctl
.
word
sys_epoll_wait
,
sys_nis_syscall
,
sys_getppid
,
sys_nis_syscall
,
sys_sgetmask
/*
200
*/
.
word
sys_ssetmask
,
sys_nis_syscall
,
sys_newlstat
,
sys_uselib
,
sys_nis_syscall
.
word
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_
nis_syscall
/*
210
*/
.
word
sys_
nis_syscall
,
sys_nis_syscall
,
sys_waitpid
,
sys_swapoff
,
sys_sysinfo
.
word
sys_readahead
,
sys_socketcall
,
sys_syslog
,
sys_lookup_dcookie
,
sys_
fadvise64
/*
210
*/
.
word
sys_
fadvise64_64
,
sys_nis_syscall
,
sys_waitpid
,
sys_swapoff
,
sys_sysinfo
.
word
sys_ipc
,
sys_nis_syscall
,
sys_clone
,
sys_nis_syscall
,
sys_adjtimex
/*
220
*/
.
word
sys_nis_syscall
,
sys_ni_syscall
,
sys_delete_module
,
sys_ni_syscall
,
sys_getpgid
.
word
sys_bdflush
,
sys_sysfs
,
sys_nis_syscall
,
sys_setfsuid
,
sys_setfsgid
...
...
include/asm-sparc/unistd.h
View file @
a6ac2f91
...
...
@@ -225,8 +225,8 @@
#define __NR_socketcall 206
/* Linux Specific */
#define __NR_syslog 207
/* Linux Specific */
#define __NR_lookup_dcookie 208
/* Linux Specific */
/* #define __NR_iopl 209 Linux Specific - i386 specific, unused
*/
/* #define __NR_idle 210 Linux Specific - was sys_idle, now unused
*/
#define __NR_fadvise64 209
/* Linux Specific
*/
#define __NR_fadvise64_64 210
/* Linux Specific
*/
/* #define __NR_vm86 211 Linux Specific - i386 specific, unused */
#define __NR_waitpid 212
/* Linux Specific */
#define __NR_swapoff 213
/* Linux Specific */
...
...
include/asm-sparc64/unistd.h
View file @
a6ac2f91
...
...
@@ -225,8 +225,8 @@
#define __NR_socketcall 206
/* Linux Specific */
#define __NR_syslog 207
/* Linux Specific */
#define __NR_lookup_dcookie 208
/* Linux Specific */
/* #define __NR_iopl 209 Linux Specific - i386 specific, unused
*/
/* #define __NR_idle 210 Linux Specific - was sys_idle, now unused
*/
#define __NR_fadvise64 209
/* Linux Specific
*/
#define __NR_fadvise64_64 210
/* Linux Specific
*/
/* #define __NR_vm86 211 Linux Specific - i386 specific, unused */
#define __NR_waitpid 212
/* Linux Specific */
#define __NR_swapoff 213
/* Linux Specific */
...
...
include/linux/mm.h
View file @
a6ac2f91
...
...
@@ -433,6 +433,7 @@ extern int handle_mm_fault(struct mm_struct *mm,struct vm_area_struct *vma, unsi
extern
int
make_pages_present
(
unsigned
long
addr
,
unsigned
long
end
);
extern
int
access_process_vm
(
struct
task_struct
*
tsk
,
unsigned
long
addr
,
void
*
buf
,
int
len
,
int
write
);
extern
long
sys_remap_file_pages
(
unsigned
long
start
,
unsigned
long
size
,
unsigned
long
prot
,
unsigned
long
pgoff
,
unsigned
long
nonblock
);
extern
long
sys_fadvise64_64
(
int
fd
,
loff_t
offset
,
loff_t
len
,
int
advice
);
void
put_dirty_page
(
struct
task_struct
*
tsk
,
struct
page
*
page
,
unsigned
long
address
,
pgprot_t
prot
);
...
...
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