lkml.org 
[lkml]   [2010]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -V19 11/15] x86: Add new syscalls for x86_64
    Date
    This patch add new syscalls to x86_64

    Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
    ---
    arch/x86/ia32/ia32entry.S | 11 +++++++++++
    arch/x86/include/asm/unistd_64.h | 24 ++++++++++++++++++++++++
    2 files changed, 35 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
    index b86feab..7b6c67d 100644
    --- a/arch/x86/ia32/ia32entry.S
    +++ b/arch/x86/ia32/ia32entry.S
    @@ -845,4 +845,15 @@ ia32_sys_call_table:
    .quad sys_fanotify_init
    .quad sys32_fanotify_mark
    .quad sys_prlimit64 /* 340 */
    + .quad sys_name_to_handle_at
    + .quad compat_sys_open_by_handle_at
    + .quad sys_handle_readlink
    + .quad sys32_handle_stat64
    + .quad sys_handle_link /* 345 */
    + .quad sys_handle_chown
    + .quad sys_handle_setxattr
    + .quad sys_handle_getxattr
    + .quad sys_handle_listxattr
    + .quad sys_handle_removexattr /* 350 */
    + .quad compat_sys_handle_utimes
    ia32_syscall_end:
    diff --git a/arch/x86/include/asm/unistd_64.h b/arch/x86/include/asm/unistd_64.h
    index 363e9b8..09ee835 100644
    --- a/arch/x86/include/asm/unistd_64.h
    +++ b/arch/x86/include/asm/unistd_64.h
    @@ -669,6 +669,30 @@ __SYSCALL(__NR_fanotify_init, sys_fanotify_init)
    __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
    #define __NR_prlimit64 302
    __SYSCALL(__NR_prlimit64, sys_prlimit64)
    +#define __NR_name_to_handle_at 303
    +__SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at)
    +#define __NR_open_by_handle_at 304
    +__SYSCALL(__NR_open_by_handle_at, sys_open_by_handle_at)
    +#define __NR_readlink_by_handle 305
    +__SYSCALL(__NR_readlink_by_handle, sys_handle_readlink)
    +#define __NR_stat_by_handle 306
    +__SYSCALL(__NR_stat_by_handle, sys_handle_stat)
    +#define __NR_link_by_handle 307
    +__SYSCALL(__NR_link_by_handle, sys_handle_link)
    +#define __NR_chown_by_handle 308
    +__SYSCALL(__NR_chown_by_handle, sys_handle_chown)
    +#define __NR_setxattr_by_handle 309
    +__SYSCALL(__NR_setxattr_by_handle, sys_handle_setxattr)
    +#define __NR_getxattr_by_handle 310
    +__SYSCALL(__NR_getxattr_by_handle, sys_handle_getxattr)
    +#define __NR_listxattr_by_handle 311
    +__SYSCALL(__NR_listxattr_by_handle, sys_handle_listxattr)
    +#define __NR_removexattr_by_handle 312
    +__SYSCALL(__NR_removexattr_by_handle, sys_handle_removexattr)
    +#define __NR_utimes_by_handle 313
    +__SYSCALL(__NR_utimes_by_handle, sys_handle_utimes)
    +
    +

    #ifndef __NO_STUBS
    #define __ARCH_WANT_OLD_READDIR
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2010-08-27 13:07    [W:0.025 / U:1.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site