Linux kernel

Discussion about the Linux kernel.

Query regarding bus error

Submitted by Anonymous
on February 28, 2009 - 3:53am

I have simple program which is accessing a high addr in user mode, and during execution it is receiving SIGBUS.
I know in 32bit linux user process shouldn't touch the high address, but i want to know which part of kernel code is issuing a SIGBUS to this user process.

kREproxy - my network kernel module

Submitted by zet
on February 27, 2009 - 9:00am
Linux

Hello all,
I wrote some experimental Linux module. I know that this not good idea to implementing networking software in kernel and if we consider production way this is very dangerous but maybe this code help somebody to solve some problems in kernel prgramming. That is why I decided to show you my soft.

Software irq handler

Submitted by Anonymous
on February 25, 2009 - 2:35am
Linux

It is required to write software irq (120) handler and register it.

But request_irq return -38 (ENOSYS). How can I do it?

FTP NAT issues

Submitted by Anonymous
on February 25, 2009 - 1:37am
Linux

Hi ALL,

I am not sure whether I can post my queries about the net filters here. But any mere info would be helpful for me to do a fix.

I have observed a strange problem with FTP Port command with NAT in router.

My setup looks like,

FTP CLIENT --------->(LAN) ROUTER ---------->(WAN) FTP SERVER

A problem with iwconfig command. (though I give correct command but still it comes out to be invalid)

Submitted by Anonymous
on February 25, 2009 - 12:36am
Linux

Hi all,

I am using wireless tools version 29. I am finding it difficult to use iwconfig power command.
I give:
iwconfig [wlanif] power off -- this works
./iwconfig eth1 power 500m unicast --this also works
but when I try to set the value of timeout or period..
------------------------------------------------
# ./iwconfig eth1 power timeout 300

Virtual address of a page from struct page

Submitted by sidc7
on February 24, 2009 - 5:14pm
Linux

I am using the function page_address to get the virtual address of a page using its pointer. I am using kernel 2.6.24 and page_address has been exported. However, when I make a call to page_address in my kernel module, it does not allow me to use it, saying, "Implict declaration of page_address".

Is there any other way, I can get the virtual address of a page from a pointer to its structure

Problemm remote debug linux kernel in two VMWare.

Submitted by Anonymous
on February 24, 2009 - 6:53am
Linux

Greetings!
The problem, is 2 VMWare with an identical kernel, at loading of the module of a kernel, it is loaded to different addresses in different kernels, how it to correct? Thanks.

Copy on write in the kernl

Submitted by sidc7
on February 23, 2009 - 9:45pm
Linux

Hi,

As far as I understand, Linux uses the COW optimization so parent and child process share the same address space, till one of them writes to it, at which point the kernel creates a copy of the page written to. This is done through the function do_wp_page which in turn calls cow_user_page.

Adding an access point to a network driver

Submitted by bloggins666
on February 23, 2009 - 2:01pm
Linux

I have a requirement to allow a user space application be able to memory map to some of the data buffers within a network driver.

As far as I can see, I will need to make the network driver register as a character device driver as well so that I can eventually get an entry under "/dev" and then I can use file I/O to open and perform the memory map.

Find out a cause of kjournald writing to disk?

Submitted by KarlisRepsons
on February 23, 2009 - 3:10am
Linux

Hello,

how to find out the real cause of kjournald writing to block device, even if there are no write requests from other programs except kjournald?
For that to be said I used
echo 1 > /proc/sys/vm/block_dump and watched messages...

My linux can not support Multicast.

Submitted by Anonymous
on February 23, 2009 - 2:32am
Linux

I am using Igmp from http://sourceforge.net/projects/igmpproxy to control mroute setting.

I post some data from my system.
-----------------------------------------------------
/tmp # cat /proc/net/ip_mr_vif
Interface BytesIn PktsIn BytesOut PktsOut Flags Local Remote
0 lan 0 0 0 0 00000 C0A80001 00000000

Add a System Call

Submitted by weiwu
on February 22, 2009 - 4:09pm
Linux

I am trying to add a system under linux-2.6.28+.
I can successfully do this by adding the system call code to the kernel source tree.

But, since it will take a relative long time to compile the kernel,
I would like to put the real work into a loadable linux module.
Therefore, I am trying to do the following tricks:

----------------------------------------

Understanding TLB format

Submitted by Anonymous
on February 21, 2009 - 5:42am
Linux

I am working on MIPS processor.
The linux is using tlb-r4k.
I couldn't understand what is the format to modify each TLB entry in table.

when does uevents are generated?

Submitted by Anonymous
on February 19, 2009 - 1:54am
Linux

In what all cases uevents are generated?

Thanks.

USB HID: Gyration kbd wakeups pc but remote keys do not

Submitted by bobthule
on February 16, 2009 - 6:54pm
Linux

I have a Gyration Keyboard and Remote combo (GYAM1600CKUS, GYR3101US) that work off the same USB wireless transmitter. When I suspend the pc to S3, pressing a button on the keyboard will wakeup the pc, however, no buttons on the remote will wakeup the pc. Could this be a problem caused by two interfaces being on the same USB device? If not, any other suggestions? Thanks