Skip to content
Advertisement

Tag: linux-kernel

/dev/mem and /dev/kmem not exists?

I would appreciate if some one can explain me why the two files do not exist? How Android kernel’s virtual memory space and physical space be like without have the 2 files? Edit: I am having Android 2.3.7 (Cyanogen mod), the 2 files do not exist: Edit2: I have checked the Samsung Galaxy S3 running ICS, the 2 files exist

Distinguish forwarding traffic and locally originated traffic in Linux network driver

Is there any information in the struct skbuff to distinguish between the forwarding traffic (bridge forwarding and ip forwarding) and locally originated traffic? We want to treat these two kinds of traffic differently in the network driver because the forwarding traffic do not require cache invalidation on the whole packet size. Any suggestions are appreciated. Thank you very much! Answer

How do I get the interrupt vector number on Linux?

When I run “cat /proc/interrupts”, I can get the following: How can I get the interrupt number of “NMI” “LOC” “SPU” “PMI”, etc. Answer On x86 NMIs are always on interrupt vector 2. The number is hard-coded just as common exceptions (division by 0, page fault, etc). You can find this in the CPU documentation from Intel/AMD. If the APIC

What’s the purpose of the UD2 opcode in the Linux kernel?

I have found the following fragment in the Linux kernel (not the corresponding C code though), somewhere during the start up phase. You can clearly see the 0F 0B parts, which stand for the UD2 opcode (IDA refused to disassemble). There are some possible usages for this opcode explained here and here. In this case, however, the opcodes after this

Linux readw and readl endianness

May anyone please explain the endianness of returned values by readw and readl. I am currently using PowerPC arch. Thanks and Best Regards! Answer “readw” and “readl” return the value of the underlying architecture. As it happens, a PowerPC can be either big- or little endian. AFAIK, most Linux implementations run PPC in big-endian mode.

Linux SCHED_OTHER, SCHED_FIFO and SCHED_RR – differences

Can someone explain the differences between SCHED_OTHER, SCHED_FIFO and SCHED_RR? Thanks Answer SCHED_FIFO and SCHED_RR are so called “real-time” policies. They implement the fixed-priority real-time scheduling specified by the POSIX standard. Tasks with these policies preempt every other task, which can thus easily go into starvation (if they don’t release the CPU). The difference between SCHED_FIFO and SCHED_RR is that

In what context Kernel Thread runs in Linux?

I am newbie to Linux Kernel. I know that there are two context 1. Process Context, running in user space or in Kernel Space (for ex: as part of System call) 2. Interrupt Context In what context Kernel Thread (not related to any User Thread, for ex:flush task) runs ? Is there any other context other than Process and Interrupt

Advertisement