This tag is for general questions regarding code that runs in the context of an operating system kernel (kernelspace, as opposed to userspace), including writing custom kernels. Questions about specific kernels should use a relevant tag (eg. [linux-kernel], [windows-kernel], [xnu]). This tag is ...

learn more… | top users | synonyms

0
votes
0answers
14 views

Why my (kernel) GCov doesn't work on linux 3.9?

I had done as the "Documentation/gcov.txt" said. Basic about mime: $ uname -a Linux turf.ivor 3.9.5 #1 SMP Fri Jun 14 00:51:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/redhat-release ...
0
votes
1answer
8 views

Implementation of if_nametoindex

Where can I find the implementation of if_nametoindex? It seems to be externed in net/if.h but searching through the source code I cannot find any hint on the implementation. A better question is, how ...
0
votes
0answers
17 views

Kill one application from another application in android middle layer

I have a middle layer test application which use to test my driver path. For testing I am using a tinyalsa utility from a system command. The issue is that when I start recording it will start ...
0
votes
0answers
11 views

Do I need special udev rules do make ttyO serial ports work with QEMU -M beaglexm?

This question is related to one that I already posted and want to discart a possiblity of malfunction. question related: ttyO ports do not have the good port address on QEMU 1.4.0 running image for ...
0
votes
0answers
28 views

Linux kernel wall-clock time

I am trying to retrieve the wall-clock time as in hour:minute:sec in a Linux kernel module. My intention was to get the wall-clock time before a certain block of statement is executed. So I did some ...
0
votes
1answer
11 views

Units of QueryPerformanceFrequency

A simple question: Which is the QueryPerformanceFrequency unit? Hz (ticks per second)? Thank you very much, Bruno
-1
votes
0answers
15 views

how to create initrd image for linux kernel version 3.4.* on fedora 8? [closed]

I have compiled 3.4.35 version Linux kernel on fedora 8. Fedora 8 provide mkinitrd to create initrd image but new kernel uses initramfs. So how can i create initramfs for fedora 8 for 3.4.25.
1
vote
2answers
104 views

What does `##` mean in C?

This is an excerpt from linux kernel source. What is the stem## usage? seeing for first time in c #define __pcpu_size_call_return(stem, variable) \ ({ typeof(variable) ...
0
votes
1answer
9 views

How to customize a kernel function in ksvm of kernlab package?

I have latitudes and longitudes, so I need to redefine the RBF kernel into exp(-1/2||sophere distrance||^2), which means I need to rewrite a kernel function myself. I write my kernel as follows: ...
-1
votes
1answer
32 views

Compiling kernel, ld doesn't have the -T option

I made a custom bash script for assembling, compiling, and linking the kernel but when it gets to the line for linking i run into an error (see below). Im running this on OSX, newest build so im not ...
1
vote
0answers
17 views

create real mode elf file and link it to my kernel

I'm trying to turn on graphic mode in VGA (in a our course kernel - JOS). I found that to do so I need to call interrupt 10h from real mode (8086). However, getting to real mode after you got to ...
0
votes
1answer
20 views

How does Kernel protect Mode Bits (PSW) from being modified by User Program?

I understand that the CPU distinguishes Kernel Mode and User Mode based on the Program Status Word, but suppose that a User Program was attempting to gain unauthorised access to invoke system calls by ...
0
votes
0answers
8 views

how to get network QoS statistics in linux kernel?

Is there a way to get the bandwidth, delay, jitter collision, error rate and loss rate of a certain link through the interface on a local machine? let's say my machine is connected to a network via ...
0
votes
2answers
30 views

CUDA compile kernel to DLL and use it

I managed to make whole thing with function pointers work and now I want to dynamically load such a kernel. My code: cuh: ifndef customkernel_cuh define customkernel_cuh extern "C" pfunctionWhere ...
0
votes
1answer
19 views

Is the tc driver in the Linux Kernel for Thin Clients or Telecine devices?

Is the tc driver in the Linux Kernel source code (./drivers/tc) for Thin Clients or Telecine devices? I am wanting to learn the Linux kernel thoroughly.

1 2 3 4 5 169
15 30 50 per page