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
nexedi
linux
Commits
98b5f9cb
Commit
98b5f9cb
authored
Apr 16, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sparc{,64}: seg/get affinity syscalls
parent
77994d73
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
8 deletions
+58
-8
arch/sparc/kernel/systbls.S
arch/sparc/kernel/systbls.S
+1
-1
arch/sparc64/kernel/sys_sparc32.c
arch/sparc64/kernel/sys_sparc32.c
+51
-1
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+2
-2
include/asm-sparc/unistd.h
include/asm-sparc/unistd.h
+2
-2
include/asm-sparc64/unistd.h
include/asm-sparc64/unistd.h
+2
-2
No files found.
arch/sparc/kernel/systbls.S
View file @
98b5f9cb
...
...
@@ -50,7 +50,7 @@ sys_call_table:
/*
145
*/
.
long
sys_setrlimit
,
sys_pivot_root
,
sys_prctl
,
sys_pciconfig_read
,
sys_pciconfig_write
/*
150
*/
.
long
sys_nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_poll
,
sys_getdents64
/*
155
*/
.
long
sys_fcntl64
,
sys_nis_syscall
,
sys_statfs
,
sys_fstatfs
,
sys_oldumount
/*
160
*/
.
long
sys_
nis_syscall
,
sys_nis_syscall
,
sys_getdomainname
,
sys_setdomainname
,
sys_nis_syscall
/*
160
*/
.
long
sys_
sched_setaffinity
,
sys_sched_getaffinity
,
sys_getdomainname
,
sys_setdomainname
,
sys_nis_syscall
/*
165
*/
.
long
sys_quotactl
,
sys_nis_syscall
,
sys_mount
,
sys_ustat
,
sys_setxattr
/*
170
*/
.
long
sys_lsetxattr
,
sys_fsetxattr
,
sys_getxattr
,
sys_lgetxattr
,
sys_getdents
/*
175
*/
.
long
sys_setsid
,
sys_fchdir
,
sys_fgetxattr
,
sys_listxattr
,
sys_llistxattr
...
...
arch/sparc64/kernel/sys_sparc32.c
View file @
98b5f9cb
...
...
@@ -4160,7 +4160,7 @@ struct __sysctl_args32 {
u32
__unused
[
4
];
};
extern
asmlinkage
long
sys32_sysctl
(
struct
__sysctl_args32
*
args
)
asmlinkage
long
sys32_sysctl
(
struct
__sysctl_args32
*
args
)
{
struct
__sysctl_args32
tmp
;
int
error
;
...
...
@@ -4197,3 +4197,53 @@ extern asmlinkage long sys32_sysctl(struct __sysctl_args32 *args)
}
return
error
;
}
extern
asmlinkage
int
sys_sched_setaffinity
(
pid_t
pid
,
unsigned
int
len
,
unsigned
long
*
user_mask_ptr
);
asmlinkage
int
sys32_sched_setaffinity
(
__kernel_pid_t32
pid
,
unsigned
int
len
,
u32
*
user_mask_ptr
)
{
unsigned
long
kernel_mask
;
mm_segment_t
old_fs
;
int
ret
;
if
(
get_user
(
kernel_mask
,
user_mask_ptr
))
return
-
EFAULT
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_sched_setaffinity
(
pid
,
/* XXX Nice api... */
sizeof
(
kernel_mask
),
&
kernel_mask
);
set_fs
(
old_fs
);
return
ret
;
}
extern
asmlinkage
int
sys_sched_getaffinity
(
pid_t
pid
,
unsigned
int
len
,
unsigned
long
*
user_mask_ptr
);
asmlinkage
int
sys32_sched_getaffinity
(
__kernel_pid_t32
pid
,
unsigned
int
len
,
u32
*
user_mask_ptr
)
{
unsigned
long
kernel_mask
;
mm_segment_t
old_fs
;
int
ret
;
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
ret
=
sys_schet_getaffinity
(
pid
,
/* XXX Nice api... */
sizeof
(
kernel_mask
),
&
kernel_mask
);
set_fs
(
old_fs
);
if
(
ret
==
0
)
{
if
(
put_user
(
kernel_mask
,
user_mask_ptr
))
ret
=
-
EFAULT
;
}
return
ret
;
}
arch/sparc64/kernel/systbls.S
View file @
98b5f9cb
...
...
@@ -51,7 +51,7 @@ sys_call_table32:
.
word
sys32_setrlimit
,
sys_pivot_root
,
sys32_prctl
,
sys32_pciconfig_read
,
sys32_pciconfig_write
/*
150
*/
.
word
sys_nis_syscall
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_poll
,
sys_getdents64
.
word
sys32_fcntl64
,
sys_nis_syscall
,
sys32_statfs
,
sys32_fstatfs
,
sys_oldumount
/*
160
*/
.
word
sys
_nis_syscall
,
sys_nis_syscall
,
sys_getdomainname
,
sys_setdomainname
,
sys_nis_syscall
/*
160
*/
.
word
sys
32_sched_setaffinity
,
sys32_sched_getaffinity
,
sys_getdomainname
,
sys_setdomainname
,
sys_nis_syscall
.
word
sys32_quotactl
,
sys_nis_syscall
,
sys32_mount
,
sys_ustat
,
sys_setxattr
/*
170
*/
.
word
sys_lsetxattr
,
sys_fsetxattr
,
sys_getxattr
,
sys_lgetxattr
,
sys32_getdents
.
word
sys_setsid
,
sys_fchdir
,
sys_fgetxattr
,
sys_listxattr
,
sys_llistxattr
...
...
@@ -110,7 +110,7 @@ sys_call_table:
.
word
sys_setrlimit
,
sys_pivot_root
,
sys_prctl
,
sys_pciconfig_read
,
sys_pciconfig_write
/*
150
*/
.
word
sys_getsockname
,
sys_nis_syscall
,
sys_nis_syscall
,
sys_poll
,
sys_getdents64
.
word
sys_nis_syscall
,
sys_nis_syscall
,
sys_statfs
,
sys_fstatfs
,
sys_oldumount
/*
160
*/
.
word
sys_
nis_syscall
,
sys_nis_syscall
,
sys_getdomainname
,
sys_setdomainname
,
sys_utrap_install
/*
160
*/
.
word
sys_
sched_setaffinity
,
sys_sched_getaffinity
,
sys_getdomainname
,
sys_setdomainname
,
sys_utrap_install
.
word
sys_quotactl
,
sys_nis_syscall
,
sys_mount
,
sys_ustat
,
sys_setxattr
/*
170
*/
.
word
sys_lsetxattr
,
sys_fsetxattr
,
sys_getxattr
,
sys_lgetxattr
,
sys_getdents
.
word
sys_setsid
,
sys_fchdir
,
sys_fgetxattr
,
sys_listxattr
,
sys_llistxattr
...
...
include/asm-sparc/unistd.h
View file @
98b5f9cb
...
...
@@ -175,8 +175,8 @@
#define __NR_statfs 157
/* Common */
#define __NR_fstatfs 158
/* Common */
#define __NR_umount 159
/* Common */
/* #define __NR_async_daemon 160 SunOS Specific
*/
/* #define __NR_getfh 161 SunOS Specific
*/
#define __NR_sched_set_affinity 160
/* Linux specific, async_daemon under SunOS
*/
#define __NR_sched_get_affinity 161
/* Linux specific, getfh under SunOS
*/
#define __NR_getdomainname 162
/* SunOS Specific */
#define __NR_setdomainname 163
/* Common */
/* #define __NR_ni_syscall 164 ENOSYS under SunOS */
...
...
include/asm-sparc64/unistd.h
View file @
98b5f9cb
...
...
@@ -175,8 +175,8 @@
#define __NR_statfs 157
/* Common */
#define __NR_fstatfs 158
/* Common */
#define __NR_umount 159
/* Common */
/* #define __NR_async_daemon 160 SunOS Specific
*/
/* #define __NR_getfh 161 SunOS Specific
*/
#define __NR_sched_set_affinity 160
/* Linux specific, async_daemon under SunOS
*/
#define __NR_sched_get_affinity 161
/* Linux specific, getfh under SunOS
*/
#define __NR_getdomainname 162
/* SunOS Specific */
#define __NR_setdomainname 163
/* Common */
#define __NR_utrap_install 164
/* SYSV ABI/v9 required */
...
...
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