Skip to main content

Questions tagged [system-calls]

Questions concerning the details of how a program uses system calls to interact with the kernel API, what calls are available, how they work etc.

3 votes
2 answers
85 views

I tried tcp_connect, udp_sendmsg kprobes together on an eBPF program and it worked, but it missed a lot of connections. I couldn't really get any reliable results with other kprobes as well so I tried ...
Subtle Development Space's user avatar
2 votes
1 answer
37 views

I'm trying to learn how to probe my CPU sensor data. I need at most 1 to 2 ms sampling period. Using hwmon this could be possible for the temperature data. But so far I only discovered the CPUfreq ...
Bastian sek's user avatar
3 votes
1 answer
71 views

I have a file access problem in a self developed daemon process after a setuid() system call. I already post this question to SO but the impression is that the problem is not C++ related but Linux ...
Holger's user avatar
  • 33
7 votes
1 answer
557 views

Are there any lists compiled that provide a list of linux system calls used per function in a standard glibc build? For example, free() requires mmap, munmap, mprotect, prlimit64, and brk. If ...
user30972097's user avatar
0 votes
2 answers
313 views

I am currently learning about Kernels in operating system and I often come across the terms "user-space applications" and "programs"—especially in the context of the kernel's ...
lost_decimal's user avatar
2 votes
0 answers
62 views

I'm struggling the following problem. I have an NFS v4.1 mount, where I have a directory with a couple of thousands files. I'm trying to list their names and types. Even with a minimal example program ...
dmk's user avatar
  • 21
0 votes
0 answers
61 views

So, I decided to start learn about system call with strace and want to observe network-related system call on apache2 processes, here's how I attach it: pidof -s apache2 pstree -sTp <pid-from-pidof&...
ReYuki's user avatar
  • 33
0 votes
1 answer
226 views

I am very new to linux and as such would appreciate any pointers with respect to understanding system calls and having the ability, knowledge and tools to reverse-engineer their origin or their ...
N S's user avatar
  • 1
0 votes
0 answers
40 views

I'm fiddling with a BPF program that needs to attach to the two "getname" functions that are being called from the renameat2 syscall, defined in linux/fs/namei.c as: SYSCALL_DEFINE5(...
Dennis Orlando's user avatar
1 vote
0 answers
40 views

In Linux, there is a per-process kernel stack that stores at the bottom of it (or top if the stack grows upwards) a small struct named thread_info, which in turn points to the task_struct of the ...
Idan Rosenzweig's user avatar
1 vote
2 answers
567 views

I know that switching from user mode to kernel mode occurs continuously via system calls. My question is if systemd is the exact point during the starting of a linux system where the first ...
Kode1000's user avatar
0 votes
0 answers
688 views

I'm in the process of replacing some RHEL7 NFS server/client systems with RHEL8 systems, performing the same functions. On the RHEL8 NFS client, I noticed running a find command on the NFS mount, is ...
keyboard_banger's user avatar
10 votes
1 answer
2k views

Quoting from https://www.kernel.org/doc/Documentation/process/adding-syscalls.rst: At least on 64-bit x86, it will be a hard requirement from v4.17 onwards to not call system call functions in the ...
Petr Skocik's user avatar
  • 29.7k
6 votes
1 answer
2k views

Based on my research on mmap(), I understand that mmap uses demand paging to copy in data to the kernel page cache only when the virtual memory address is touched, through page fault. If we are ...
prajasek's user avatar
6 votes
1 answer
407 views

I'm trying to read what type of file /dev/null is. If I use stat() it reports correctly that it's a character device. If I use getdents(), it also reports that it's a character device - unless I run ...
Colourful's user avatar

15 30 50 per page
1
2 3 4 5
27