Re: generic swap()

2009-01-20 Thread debian developer
On Wed, Jan 21, 2009 at 1:13 PM, Fernando Apesteguía < fernando.apesteg...@gmail.com> wrote: > On 1/21/09, debian developer wrote: > > I don't seem to understand this patch. What is swap(a, b) returning here? > > and where is it returning from? > > It is not "returning" but substituting, cause it

Re: Device or resource busy?

2009-01-20 Thread Won De Erick
My mistake! :) Thanks! - Original Message From: Chaitanya The function name is "cleanup_module" _not_ "clean_module" -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: Device or resource busy?

2009-01-20 Thread Won De Erick
I guess the following is what you are referring for: void clean_module(void) { printk(KERN_INFO "Goodbye world. \n"); } Is there any mistake on this? Is there any other way to fix the error displayed? Thanks. - Original Message From: Chaitanya There must be

Re: generic swap()

2009-01-20 Thread debian developer
I don't seem to understand this patch. What is swap(a, b) returning here? and where is it returning from? What advantage does using a do{}while(0); have on this? On Fri, Jan 16, 2009 at 3:15 PM, Peter Zijlstra wrote: > On Fri, 2009-01-16 at 01:38 -0800, Andrew Morton wrote: > > On Fri, 16 Jan 20

Device or resource busy?

2009-01-20 Thread Won De Erick
Hello, I tried the kernel module programming tutorial (exactly same code) found on the following link: http://tldp.org/LDP/lkmpg/2.6/html/x121.html The module was successfully compiled, then used insmod to insert into the kernel. It was properly listed in /proc/modules. # cat /proc/modules |

Re: what are the differences between rootfs, romfs and tmpfs?

2009-01-20 Thread ajit mote
~/Documentation/filesystems directory has romfs.txt and tmpfs.txt , may you find them useful ... On Wed, Jan 21, 2009 at 10:12 AM, loody wrote: > Dear all: > while tracing the kernel about initrd and google any information about > this topic, there are some terms like rootfs, romfs and tmpfs?

what are the differences between rootfs, romfs and tmpfs?

2009-01-20 Thread loody
Dear all: while tracing the kernel about initrd and google any information about this topic, there are some terms like rootfs, romfs and tmpfs? what are the differences and place to use them? appreciate your help, miloody -- To unsubscribe from this list: send an email with "unsubscribe kernelnewb

Re: doubt in USB

2009-01-20 Thread ajit mote
Hello, > What is usbcore module? > > what is uhci-hcd module? > go through following : http://www.lrr.in.tum.de/Par/arch/usb/usbdoc/node14.html > in this two which is the usb device driver? > > why this two drivers are needed to make usb port work...? > After reading above article , yo wi

doubt in USB

2009-01-20 Thread niamathullah sharief
Hello, i am having very big doubt among the four things...What is usbcore module?what is uhci-hcd module?in this two which is the usb device driver?why this two drivers are needed to make usb port work...? Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/inv

Re: Custom Ethernet frame transmitter module

2009-01-20 Thread Łukasz Jachymczyk
StephanT wrote: > You are brave! > > You, already have such a module on your system. It is the ETH driver. > Study it and modify as you wish. Are we talking about net/ethernet/eth.c ? I can't see how it can be useful for me:/ Nevertheless, I found dev_get_by_name and dev_queue_xmit functions. I

Re: Probelm simulating usb-ethernet controller in gadget/ether.c

2009-01-20 Thread Mandeep Sandhu
> Could you just try USB snoopy on XP ? I've used it many times to get my out > of jail card. At least you would see what the descriptors seem to hold in > your CDC device. > I don't know about the latest rev on Snoopy, but one pain is that it doesn't > log/display > string descriptors. > Note that

RE: Probelm simulating usb-ethernet controller in gadget/ether.c

2009-01-20 Thread Microbit_P43000
Hi Mandeep, >> I'm not sure if there's one available for the n810 tablet. I searched the apt repos and it didn't show up there... << Could you just try USB snoopy on XP ? I've used it many times to get my out of jail card. At least you would see what the descriptors seem to hold in your C

Problem with mtd_blktrans_thread()

2009-01-20 Thread Stephane Lambert
Hi all, I'm trying to boot uClinux 2.6 on a new architecture. I have a problem during execution of the mtd_blktrans_thread() function. Indeed the condition for the while loop never permits to terminate. while (!tr->blkcore_priv->exiting) { ... }

Re: About Raising priority of Kernel Function to Interrupt Level

2009-01-20 Thread Pei Lin
"you could assign your critical thread a higher priority than the ISRs." yeah,but i really want to know which situation really need to do this. 2009/1/20 Matthias Kaehlcke : > El Tue, Jan 20, 2009 at 01:17:11PM +0530 mayank rana ha dit: > >>I am looking for some particular case here. >>He

Re: About Raising priority of Kernel Function to Interrupt Level

2009-01-20 Thread Matthias Kaehlcke
El Tue, Jan 20, 2009 at 01:17:11PM +0530 mayank rana ha dit: >I am looking for some particular case here. >Here is the scenario: >1. I have one ISR which is getting called while I am receiving interru

Re: About Raising priority of Kernel Function to Interrupt Level

2009-01-20 Thread Syed Khader
> is obviously having somewhat less priority. Do we have any > mechnsm which allows us to raise the Kernel Code Function priority from > Thread Context to Interrupt Context while executing it. > Please make it a habit of quoting the arch/kernel version by default while asking something. Coming

About Raising priority of Kernel Function to Interrupt Level

2009-01-20 Thread mayank rana
Hi All, I am looking for some particular case here. Here is the scenario: 1. I have one ISR which is getting called while I am receiving interrupts. 2. Now I have one more Kernel Code Function which is as critical as this ISR Execution. Is there any way to raise the Kernel Code function priority