Questions tagged [userspace]
109 questions
1
vote
0 answers
How to detect if `struct page` is backed by a file on a filesystem in Linux?
I am writing a Linux device module that need to occasionally pin userspace memory pages. Some of these pages may be backed by a file placed on a filesystem. That happens if a userspace program which calls my driver has used mmap() to create…

Grigory Rechistov
- 2,104
- 16
- 25
1
vote
1 answer
kubernetes kube proxy mode(which one IPVS,iptables or userspace)
how can i check if my kube-proxy is run in IPVS mode?
kube proxy run in three diffrent mode, but my question is how to check in which mode my kube-proxy is runnig?

vahid ghadimi
- 15
- 5
1
vote
0 answers
how to implement TxDataAvailable. how to know the size of buffer to be sent to USB layer
I want to develop a serial driver using a driver kit framework.I am trying to override IOUserserial class methods.But i don't know how to get the size of buffer to be sent to USB layer using TXDataAvailable() and RXDataAvailable() functions? Any…

bindu
- 39
- 1
1
vote
1 answer
Is it possible to read a userspace file (from kernelspace) using BPF/eBPF?
I know that as a general note files should not be read from kernelspace.
However I am interested in looking for keywords in certain files using a BPF program.
Ideally I would like the BPF program to be able to be attached to a Kprobe and when the…

Sam
- 11
- 1
1
vote
1 answer
Thread in user-space schedulling dilemma
Recently I've started reading (again) Tanenbaum's 'Modern Operating Systems 4ed' and I am a little stuck in Chapter 2 that discusses processes and threads. Especially I am confused about user-space threads sub-chapter that lists all advantages and…

Chlebik
- 646
- 1
- 9
- 27
1
vote
0 answers
Does a process with CAP_NET_RAW set still run in user-space?
If I execute
sudo setcap cap_net_raw+ep /path/prog
and prog is a program which open a raw socket, can be prog still considered to run in user-space? How can I check it?

Maicake
- 1,046
- 10
- 34
1
vote
2 answers
BUG: unable to handle kernel paging request at ffffffffffffffff
I have an ioctl handler in my kernel driver and that has read and write ioctls. I also have a userspace application which uses this IOCTL to write/read data.
When I use this ioctl in my userspace application, it's causing a kernel OOPS with "BUG:…

oak1208
- 303
- 7
- 16
1
vote
0 answers
Non-blocking i2c read from userspace
I'm trying to read and write data off i2c in slave mode and have found several examples to do this in userspace including this most relevant one from NXP (I'm using the…

Gowri
- 11
- 3
1
vote
0 answers
Can we put capture frame from USB camera directly to user-space memory instead of passing it through v4l2_buffer?
I came to know upon reading that USB camera captured frame is first stored in v4l2_buffer and then it is pass to user-space buffer(using VIDIOC_DQBUF ioctl call).But I want to know that can we directly pass the frame to the user defined buffer…

a443
- 11
- 1
1
vote
0 answers
hrtimer signal handler in user space?
I've set up multiple hrtimers for a satellite I'm building as part of my research group. Ideally, I'd like the access to these timers in the user space, so I'm wondering if there's a way to have the hrtimer generate a signal that can be handled in…

Connor Olsen
- 145
- 1
- 14
1
vote
1 answer
How to create high frequency logging (tracing) in Linux userspace?
I am starting a new user-space application and i want to create some common utilities for logging and tracing
i distinguish between the 2 utilities. in my prespective logging should be something that is always on and used for high level information…

Strudle
- 331
- 2
- 5
- 14
1
vote
1 answer
msghdr behavior using Netlink to communicate between kernel space and user space
I'm currently working on a linux kernel module for a school project, that involves exposing the kernels hashtable implementation to user space.
To achieve this, I've also created an user space API that communicates with the LKM via a Netlink…

Ludricio
- 156
- 16
1
vote
0 answers
Steady increase in memory with fuse filesystem using libfuse
I am running dbench benchmarking tool for fileio on my fuse filesystem implementation and I am making sure that that fuse can sustain the test.
I am use libfuse library (https://github.com/libfuse/libfuse) to implement fuse. I am not doing anything…

Aila
- 319
- 1
- 4
- 11
1
vote
1 answer
What Is The Real Grand GRAND Ancestor Process In The Linux Kernel?
While trying to find all the roots of certain process application made in C, and calls a custom system call I made that returns an array of all the process using task_struct*'s info, I experienced that the task swapper/0 is the task that points to…

falhumai
- 163
- 15
1
vote
0 answers
Net-link Socket hanging issue
I want to create a Net-link Socket Over which continuously sending of the data from the user space and continuously redirecting of the message from the kernel space to the user space.
but it hangs.
Please help or suggest the solution.
If any one…

ANUJ GUPTA
- 13
- 4