Skip to contentSkip to conversation

System call number

DISCUSSION Josef E. Galea 4 participants 6 messages Nov 13, 2004 – Nov 14, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

Can anyone tell me the system call number for the function write_swap_page() (in kernel/power/pmdisk.c) as I can't find it in unistd.h.

Thanks
Josef E. Galea
[email protected]

#1 lore raw
Quoted 3 lines · Josef E. Galea

Hi,

Can anyone tell me the system call number for the function write_swap_page() (in kernel/power/pmdisk.c) as I can't find it in unistd.h.

What kernel version? I don't see what source file in 2.6.10-rc1-bk23.

There are lots of kernel functions that don't have syscall numbers. E.g, write_page() in kernel/power/swsusp.c.

Signature · 1 line
~Randy
#2 lore raw
Quoted 5 lines
Quoted 5 lines

Hi,

Can anyone tell me the system call number for the function write_swap_page() (in kernel/power/pmdisk.c) as I can't find it in unistd.h.

For all others, see linux/arch/<YOURARCH>/kernel/entry.S

Quoted 5 lines

What kernel version? I don't see what source file in 2.6.10-rc1-bk23.

There are lots of kernel functions that don't have syscall numbers. E.g, write_page() in kernel/power/swsusp.c.

Jan Engelhardt

Signature · 2 lines
Gesellschaft für Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 Göttingen, www.gwdg.de
#4 lore raw
In reply to Josef E. Galea
Quoted 5 lines · Josef E. Galea

Hi,

Can anyone tell me the system call number for the function write_swap_page() (in kernel/power/pmdisk.c) as I can't find it in unistd.h.

What makes you believe that function is a system call in the first place? It doesn't look like one to me. Hint: system calls have names prefixed with sys_ (are there any exceptions?).

Signature · 2 lines
Måns Rullgård
[email protected]
#5 lore raw
Quoted 5 lines · Måns Rullgård
Quoted 2 lines · Josef E. Galea

Hi,

Quoted 8 lines
Quoted 3 lines

Can anyone tell me the system call number for the function write_swap_page() (in kernel/power/pmdisk.c) as I can't find it in unistd.h.

What makes you believe that function is a system call in the first place? It doesn't look like one to me. Hint: system calls have names prefixed with sys_ (are there any exceptions?).

Not that I know of. I changed a few syscall names roughly 1 year ago so that they begin with sys_xyz (and some that began with sys_xyz that were not syscalls, I changed those also. :)

Signature · 1 line
~Randy
#3 lore raw
In reply to Randy.Dunlap
Quoted 5 lines · Randy.Dunlap
Quoted 1 line · Josef E. Galea

Hi,

Quoted 9 lines
Quoted 1 line

Can anyone tell me the system call number for the function write_swap_page() (in kernel/power/pmdisk.c) as I can't find it in unistd.h.

What kernel version? I don't see what source file in 2.6.10-rc1-bk23.

There are lots of kernel functions that don't have syscall numbers. E.g, write_page() in kernel/power/swsusp.c.

Version 2.6.8.1. The mention file can be found at http://lxr.linux.no/source/kernel/power/pmdisk.c?v=2.6.8.1#L191

Thanks
Josef