syscall_get_nr man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

SYSCALL_GET_NR(9)		 Machine State		     SYSCALL_GET_NR(9)

NAME
       syscall_get_nr - find what system call a task is executing

SYNOPSIS
       int syscall_get_nr(struct task_struct * task, struct pt_regs * regs);

ARGUMENTS
       task
	   task of interest, must be blocked

       regs

	   task_pt_regs of task

DESCRIPTION
       If task is executing a system call or is at system call tracing about
       to attempt one, returns the system call number. If task is not
       executing a system call, i.e. it´s blocked inside the kernel for a
       fault or signal, returns -1.

       Note this returns int even on 64-bit machines. Only 32 bits of system
       call number can be meaningful. If the actual arch value is 64 bits,
       this truncates to 32 bits so 0xffffffff means -1.

       It´s only valid to call this when task is known to be blocked.

Kernel Hackers Manual 2.6.	 November 2013		     SYSCALL_GET_NR(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net