system-calls
Why is clock_nanosleep preferred over nanosleep to create sleep times in C?
Which one of the two functions is better #include <time.h> int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timesp开发者_如何学编程ec *rmtp);[详细]
2023-04-13 08:34 分类:问答MIPS: Can I get unsigned int value from user via syscall?
The title pretty much sums this up. I am writing a program in 32-bit MIPS Assembly Language (using the MARS emulator) for a school project and I\'m having zero luck reading in int values > 2,147,483,6[详细]
2023-04-11 03:12 分类:问答How the user process can access the character device loaded by my module
I am trying to load into the kernel a system-call dynamically (without restarting the kernel and compailing it) in an attempt to (once in kernel mode) write to user process\'s memory.[详细]
2023-04-10 10:22 分类:问答How do I force a read to pass
So I am writing a simple shell. The relevant codes are posted below. void sig_int_handler(int signum) {[详细]
2023-04-09 11:51 分类:问答Problems doing syscall hooking
I use the following module code to hooks syscall, (code credited to someone else, e.g., Linux Kernel: System call hooking example).[详细]
2023-04-09 07:37 分类:问答where is file entry.S in v2.6.39.4?
I am studying system call in linux with source code in version 2.6.39.4. Books said that system call is implementd in entry.S, located in arch/i386/kernel/entry.S,[详细]
2023-04-07 17:59 分类:问答Is there a command to list all syscall names and numbers on linux in bash?
I know syscall 1 means write, but is there a command to list all implemented 开发者_高级运维syscall names and numbers on linux in bash?The man page points to the header file sys/syscall.h. It has all[详细]
2023-04-07 15:49 分类:问答C pointers void * buffer problem
Sorry for messing you all with the C stuff. The write() takes void * buff. And i need to call this function from main() by giving the required data.[详细]
2023-04-05 02:02 分类:问答Implementation of function execve (unistd.h)
How can I see the implementation of function execve (under x86_64 Linux), it is in the library unistd?[详细]
2023-04-04 16:47 分类:问答Implementation of system calls / traps within Linux kernel source
I\'m currently learning about operating systems the use of traps to facilitate system calls within the Linux kernel. I\'ve located the table of the traps in traps.c and the implementation of many of t[详细]
2023-04-04 10:50 分类:问答