This tag is for questions about the internals of the Linux kernel itself - particularly about writing code that runs within the context of the kernel (like kernel modules or drivers). Questions about writing userspace code in Linux should generally be tagged [linux] instead. Since the ...
0
votes
1answer
9 views
Linux Kernel run sparse failed - /bin/sh: 1: sparse: not found
I run sparse on linux kernel.
But it throws the following error:
Run sparse on linux:
lovegcy@knltest-VirtualBox:~/git_root/linux$ make C=2
make[1]: Nothing to be done for `all'.
HOSTCC ...
0
votes
2answers
12 views
sparse - Fixing build warnings
I'm compiling the sparse - linux kernel checking tool.
But it throws the following warning:
lovegcy@knltest-VirtualBox:~/git_root/sparse$ make
GEN version.h
/bin/sh: 1: llvm-config: ...
0
votes
1answer
13 views
KERN_DEBUG printk's at bootup not dispayed in QEMU console?
I am trying to debug and optimise the kernel bootup time. I am using QEMU for emulating the kernel. I have placed a few of my printk's with KERN_DEBUG but they are not being displayed on any of the ...
2
votes
1answer
55 views
Find memory address in hex string in kernel module
I'm writing a kernel module to find the the memory address of do_debug (0xffffffff8134f709) by first searching for the hex bytes next to the address. I'm not sure I am using the correct hex bytes: ...
0
votes
1answer
34 views
How can i avoid mulitple raw socket bind to the same ip address?
Actually, if i create multiple RAW sockets with the same IP Address. I could bind all of them, and consequently packets are received by all the sockets.
Is there any way that could be avoided, such ...
0
votes
0answers
14 views
Changing kernel variables/parameters from a kernel module
There are some kernel variables(for example tcp_frto) which can be accessible from the user space by using the commands like sysctl net.ipv4.tcp_frto or cat /proc/sys/net/ipv4/tcp_frto.
It can be ...
0
votes
0answers
14 views
Send packet with sockets from kernel module
I am writing a kernel module that should receive messages from user-space and send response back via socket.
When program and module are on the same machine and I use IP 127.0.0.1, everything works ...
-3
votes
0answers
18 views
Downloading ubuntu with kernel 2.6.30.10
Please provide me a link if any custom UBUNTU or any Linux Distro which uses kernel 2.6.10.30. I want to try some experiments on it.
0
votes
1answer
17 views
Linux apanic mechanism and difference from newer ram_console/persistent_ram mechanism
I am studying the different logging mechanisms on Linux in case of a Kernel panic (OOPS). So far from my search on the web, I have been able to derive the following information:
apanic was an old ...
0
votes
0answers
13 views
How to useAT commands in Android by 'root' the phone
We have various Android devices of Spike, Samsung, Micromax. How to give AT commands from Android device to modem?
We searched in Google Play but did not find any app related to this. Can you please ...
0
votes
0answers
36 views
C - ioctl wlan operstate, link quality, and tx/rx status
I borrowed from this gentleman in order to request the signal strength of a wireless connection on my device. I would also like to use ioctl to get the operstate and whether or not there's up/down ...
0
votes
2answers
22 views
How to implement timer expire function in sysfs of driver.?
Scenario: Suppose if I am doing echo 1 > sysfs_entry - It will start doing some I/O operation until I do echo 0 > sysfs_entry.
Here, I wanted to implement timer in sysfs_entry so that it should ...
1
vote
1answer
22 views
how to read retrun value of mmap
I'm new to this topic, I have mmaped 3 pages. How can I read the content of each? I know I have to use PAGE_SHIFT but I don't know how.
unsigned int* address = mmap(...)
0
votes
0answers
7 views
Compile Linux module with Realtime Workshop
A few years ago there was some work done with Linux + RT patch and Matlab Realtime Workshop.
Actually I try to get it work with Matlab 2011b but facing some problems.
Till 2.4 the modules were ...
0
votes
0answers
14 views
how to add a linux directory for inotify to watch with mutual exclusion
I read a Linux directory path and try to add it to "inotify". but my problem is if user change the directory name or delete the directory before program add the already read path to inotify( now ...