Linux kernel

Discussion about the Linux kernel.

Using EXPORT_SYMBOL in a 64bit architecture

Submitted by Anonymous
on September 7, 2009 - 12:08pm

Dear friends,

I have hacked a kernel and created a module that invokes some functions from this kernel. The mods work perfectly on my workstation, but I'm having several problems on a 64bit server which runs the exactly same Linux distribution.

The distro is a Ubuntu 7.04 and the kernel is 2.6.20.3-ubuntu1.

The only difference is that my workstation is i686 and the server is x86_64.

how to get proc_root

Submitted by Anonymous
on August 28, 2009 - 10:57am
Linux

Hi, i am trying to hook readdir call in proc filesystem.

        struct file_operations *fops;

	fops = proc_root.proc_fops;
	readdir_old = fops->readdir;
	fops->readdir = readdir_new;

       

But, proc_root is no longer exported. So, how can I get it?
(No System.map, /dev/kmem ...)

Thank you

How backtrace work ?

Submitted by Anonymous
on August 28, 2009 - 5:58am
Linux

What is the source of info for the backtrace API to display the symboling names of API sequence?

non cached memory for user space DMA

Submitted by Anonymous
on August 27, 2009 - 7:08am
Linux

I am trying to write a MAC driver for Arm 11 MPcore in 2.6.23. The DMA'ble memory required is supposed to be non-cached for performance reasons.

A chunk of memory(~ 6MB) is allocated at startup using bigphys area patch. This physical area in the RAM is mmap'd to userspace as follows and thereafter carved into network buffers:

fd = open("/dev/mem", O_RDWR|O_SYNC);

glibc detected *** free(): invalid pointer 0x2aca1e6c ***

Submitted by Anonymous
on August 17, 2009 - 3:59am
Linux

What is the reason of error msg:
glibc detected *** free(): invalid pointer 0x2aca1e6c ***

swap_dup: Bad swap file entry

Submitted by Anonymous
on August 17, 2009 - 3:52am
Linux

I faced the following error once in my linux machine:
swap_dup: Bad swap file entry

What this error indicates?

bzImage error

Submitted by kingos82
on August 14, 2009 - 10:56am
Linux

Hi I am trying to compile a new kernel (2.6.9) so that I can install rtlinux however when I run sudo make bzImage I get the following error:

include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
arch/i386/kernel/process.c: In function 'show_regs':

Incorrect SCSI target size on initiator

Submitted by justvaibhav
on August 9, 2009 - 1:49am
Linux

Hi All,

I have query regarding exposing SCSI target with file system & data on it. I am using 32-bit machine.

High traffic with Multicore System where one cpu is used up to 100% and rest behave normal

Submitted by praveen24
on August 6, 2009 - 2:12am
Linux

Hi
I have a system that consists of 14 processoes .Under high load one processor shows 100% usage and rest show normal behaviour.Driver is NAPI compliant.So is it a driver issue or scheduler issue?. Kernel is 2.6. The output of "top" commands show that the cpu that is 100% consumed is running ksoftirqd and it is 0% idle and 100% SI.

Interrupts are evenly distributed over the system

mtrr: type mismatch on starting X server

Submitted by kushalkoolwal
on July 23, 2009 - 4:00pm
Linux

I am using Debian Lenny with 2.6.30 kernel on my Intel Atom Poulsbo chipset computer and I get the following messages in my dmesg when I start the X server:


[ 22.760737] mtrr: type mismatch for 3ffc0000,10000 old: write-back new: write-combining
[ 22.760805] mtrr: type mismatch for 3ff80000,40000 old: write-back new: write-combining

compile a missing module from kernel tree

Submitted by Anonymous
on July 20, 2009 - 8:23am
Linux

Hello,
could anyone save me from recompiling the whole kernel and rebooting, if I need tun.ko?

Using Vanilla kerenl for RT system

Submitted by zvivered
on July 18, 2009 - 2:29pm
Linux

I want to use a vanilla kernel on my embedded x86 machine.
I have 3 options:
1. Run Dan kegel's last script: it uses 2.6.15.4
2. Use the LFS 6.4: It uses 2.6.27.4
3. Use the last version in kernel.org: 2.6.30.1, But with what tools version ?

tree structure

Submitted by Anonymous
on July 17, 2009 - 11:43am
Linux

can anyone explain the metadata btree structure of btrfs ??

serialport IRQ

Submitted by veeraiyan
on July 17, 2009 - 5:28am