Questions tagged [userspace]
109 questions
0
votes
0 answers
Maintaing some sort of object between kernel and userspace program. And synchronizing data from both userspace and kernel in that object
I am looking for a mechanism to implement shared objects between kernel and userspace. Useless to say the type but it may probably be char * or char obj[array_size] or void *.
The functionality should enable both the userspace program and kernel to…

user786
- 3,902
- 4
- 40
- 72
0
votes
1 answer
can kernel identify which userapp got killed/closed, among few apps it is serving
I'm writing a linux kernel driver, which creates a char device file "/dev/my_file".
Multiple userspace applications do open() of this file and use the ioctl cmd provided to register app specific data. IOCTL also provides for deregister cmd, which…

Sheetal T
- 90
- 1
- 7
0
votes
0 answers
Making Kernel Module and registering it as pci device driver and network device driver and accessing the module's buffer using ioctl. Possible?
I like to make a kernel module. And inside it I like to register it as pci and network device driver. And using ioctle from user space to access the module's buffer(in pci and network driver) and getting buffer. The buffer contains packets received…

user786
- 3,902
- 4
- 40
- 72
0
votes
0 answers
Is it possible to mmap the network-adapter's DMA region into userspace?
How do you find the DMA address of the network-adapter, then is it possible to mmap that address and then read and write to it?

Tyler Curtis Jowers
- 19
- 3
0
votes
0 answers
Why is 64-bit Linux user space between the virtual addresses 55Fxxxxxxxxx and 7FFxxxxxxxxx? (only 45 bits)
(Tested on Linux 64 bits)
If you watch the content of /proc//maps (being the process identifier of any process running in that moment in your system) you will see that the virtual space assigned to the process is between 555xxxxxxxxx and…

isma
- 143
- 1
- 6
0
votes
2 answers
Why applications cannot access a hardware device directly ? Why we need to switch to kernel space in order to do this?
I wondered why we need to switch to kernel space when we want to access a hardware device. I understand that sometimes, for specific actions such as memory allocation, we need to make system calls in order to switch from user space to kernel space…

Andrei Deatcu
- 3
- 2
0
votes
0 answers
php snippets user profile edit in wordpress
I created a snippet in WordPress with this shortcode post found here https://wabeo.fr/espace-membre-wordpress/.
I was constrained to add the edit_user_form() to show form, but when I post some user profile modification with it, they are not…
0
votes
1 answer
Is it possible to create a userspace networking stack with python?
Looking to create a project which implements a user-space networking stack, so that a user space application has access to the network cards, I've never done this before and I was wondering if it would possible to get this close to the hardware…

datasplice
- 494
- 1
- 3
- 16
0
votes
0 answers
Little/big endian integer types in user space
I'm going to use struct solaris_x86_slice from linux kernel header in user space. Struct is defined as:
struct solaris_x86_slice {
__le16 s_tag; /* ID tag of partition */
__le16 s_flag; /* permission flags */
__le32 s_start; …

pevik
- 4,523
- 3
- 33
- 44
0
votes
2 answers
write hard-codded to RAM at specific physical-address
I want write something in userspace program, for example: write the value 3 in the physical address 0xF7F4900(260MB) from the start address 0x0, while all kernel sits in the range 0-240MB.
How can I do it? any idea please?
Best regards.
I thought to…

ninja
- 1
0
votes
0 answers
How do I compile a userspace application for a particular Linux kernel?
I have a Linux kernel source. I am building Linux kernel image from that source. Now, I have a userspace application. How do I compile the userspace application for that particular Linux kernel source?

sal_guy
- 199
- 2
- 14
0
votes
0 answers
Fatal error: net/sock.h: No such file or directory (Kernel - Userspace application communication) [C]
I am trying to develop a module to communicate between Kernel and Userspace application. I tried the answer provided in https://stackoverflow.com/a/25071310/4190159
The issue is I have the following code:
#include
#include…

Somdip Dey
- 3,346
- 6
- 28
- 60
0
votes
1 answer
copy_to_user does not return expected data
I have a ioctl in my kernel driver and that needs to return some data upon read. When I read it back in userspace, it's not showing expected results.
Userspace snippet:
typedef struct abc_T {
int size;
int addr;
int data[32];
}…

oak1208
- 303
- 7
- 16
0
votes
0 answers
vfs_write kernel to user space file
I am trying to write a file in user space from keyboard interrupt module
I am using vfs_write to write to file.
static char *key_names_caps[] = {
"-", "",
"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=",
"",…

anmol sandhu
- 23
- 6
0
votes
1 answer
Calling default signal handler directly from new one
I have signal handler for a timer signal. This is part of a library, and I'd like to not make any assumptions about any other timer handlers the calling program already has enabled, so I'd like my handler to trigger only on my events, and call the…

HardcoreHenry
- 5,909
- 2
- 19
- 44