lkml.org 
[lkml]   [2005]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] move ioprio syscalls into syscalls.h
On Wed, Jul 06 2005, Anton Blanchard wrote:
>
> - Make ioprio syscalls return long, like set/getpriority syscalls.
> - Move function prototypes into syscalls.h so we can pick them up in the
> 32/64bit compat code.
>
> Signed-off-by: Anton Blanchard <anton@samba.org>

Thanks Anton.

Signed-off-by: Jens Axboe <axboe@suse.de>

>
> Index: foobar2/fs/ioprio.c
> ===================================================================
> --- foobar2.orig/fs/ioprio.c 2005-07-04 01:09:20.311694190 +1000
> +++ foobar2/fs/ioprio.c 2005-07-04 01:14:30.620438688 +1000
> @@ -43,7 +43,7 @@
> return 0;
> }
>
> -asmlinkage int sys_ioprio_set(int which, int who, int ioprio)
> +asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
> {
> int class = IOPRIO_PRIO_CLASS(ioprio);
> int data = IOPRIO_PRIO_DATA(ioprio);
> @@ -115,7 +115,7 @@
> return ret;
> }
>
> -asmlinkage int sys_ioprio_get(int which, int who)
> +asmlinkage long sys_ioprio_get(int which, int who)
> {
> struct task_struct *g, *p;
> struct user_struct *user;
> Index: foobar2/include/linux/syscalls.h
> ===================================================================
> --- foobar2.orig/include/linux/syscalls.h 2005-07-04 01:09:20.311694190 +1000
> +++ foobar2/include/linux/syscalls.h 2005-07-04 01:14:43.583415901 +1000
> @@ -506,4 +506,7 @@
> asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3,
> unsigned long arg4, unsigned long arg5);
>
> +asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
> +asmlinkage long sys_ioprio_get(int which, int who);
> +
> #endif
> Index: foobar2/include/linux/ioprio.h
> ===================================================================
> --- foobar2.orig/include/linux/ioprio.h 2005-07-02 15:56:13.000000000 +1000
> +++ foobar2/include/linux/ioprio.h 2005-07-04 01:16:44.216312182 +1000
> @@ -34,9 +34,6 @@
> */
> #define IOPRIO_BE_NR (8)
>
> -asmlinkage int sys_ioprio_set(int, int, int);
> -asmlinkage int sys_ioprio_get(int, int);
> -
> enum {
> IOPRIO_WHO_PROCESS = 1,
> IOPRIO_WHO_PGRP,
>

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-06 09:31    [W:0.029 / U:3.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site