Re: device model - dependency question

2009-02-13 Thread Ramagudi Naziir
Hi Greg On Sat, Feb 14, 2009 at 4:08 AM, Greg KH wrote: >> anyone knows how to make that dependency in the device model ? > > Set the parent of B to be A. The device model supports this kind of > relationship for this very reason. What's the best way to do that ? Can I do that statically or dur

Re: thread id information

2009-02-13 Thread pradeep singh
On Tue, Feb 10, 2009 at 8:57 PM, Greg Freemyer wrote: [snip] >> >> kernel does not handle each of them. There is a user space scheduler >> which takes care of them. >> Kernel is oblivious to usespace threads. >> > > I'm not an expert on linux threading, but I think the above is misleading. > > The

Re: device model - dependency question

2009-02-13 Thread Greg KH
On Sat, Feb 14, 2009 at 08:37:06AM +0200, Ramagudi Naziir wrote: > Hi Greg > > On Sat, Feb 14, 2009 at 4:08 AM, Greg KH wrote: > >> anyone knows how to make that dependency in the device model ? > > > > Set the parent of B to be A. The device model supports this kind of > > relationship for this

Re: killing a terminal window kills all child processes

2009-02-13 Thread Stoyan Gaydarov
If you want something that will not kill the process when you close the terminal you should look into screen. Screen is a virtual terminal that is not attached to a terminal so you can ssh to your machine from boxA and execute a command in screen, close the terminal, then ssh to your machine from b

Re: reverse-engineering a usb device

2009-02-13 Thread Daniel Widyanto
Hi Chris, Sorry, I didn't read your next email before reply. Anyway, I can't help you much, but maybe I can help you translating those byte sequences. Arranged in host-device dialog: down 25.875: 55 53 42 43 -> dCBWSignature: Command from host to device 08 8d e2 81 -> dCBWTag: Command tag, reply

Re: device model - dependency question

2009-02-13 Thread Greg KH
On Wed, Feb 11, 2009 at 11:23:45PM +0200, Ramagudi Naziir wrote: > hello all, > > I'm writing two platform_device structs for 2 devices I have on a > board, which we need to support. > one device is sdio controller (let's call it A), and the other one > (let's call it B) is a device which is hard

Re: How to get 'nameidata' structure from inode_permission()

2009-02-13 Thread Greg KH
On Fri, Feb 13, 2009 at 10:28:12AM +0900, OopsLee wrote: > Hi, Everyone. I have a question. > > Removed 'nameidata' passing to inode_permission() in kernel 2.6.27, > but I need 'nameidata'. Why do you need it? > Does anyone knows how to get 'nameidata' or 'path' from inode_permission()? paths a

Problem cloning linux kernel tree

2009-02-13 Thread matt mooney
I was wondering if anyone knew the cause of this error message. I am running Debian (Lenny) with the 2.6.26-1-686 kernel, here is the command along with output. $sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.28.y.git linux-2.6 Initialized empty Git repository in /us

Re: reverse-engineering a usb device

2009-02-13 Thread Microbit_Ubuntu
Hi Christoph, I had a brief ponder over this. A couple of years ago I modified & expanded Atmel's original MSD project (for SAM7 which is ARM7) to compile under GCC, but since it's been so long I'm somewhat fuzzy. I do recall the class USBGenericRequest. I can't readily access my project files rig

Re: traced or stopped process

2009-02-13 Thread Mulyadi Santosa
2009/2/12 Hinko Kocevar : > Hi, > > On my embedded target system ps shows: > # ps > PID USER VSZ STAT COMMAND >1 root 792 Sinit >2 root 0 SW< [kthreadd] >3 root 0 SW< [ksoftirqd/0] >4 root 0 SW< [events/0] >5 root 0 SW< [khelp

Re: process address space check

2009-02-13 Thread Mulyadi Santosa
Hi On Sat, Feb 14, 2009 at 1:01 AM, Ye ilho wrote: > Dear experts, > > Is there any command that I can use to know the configuration of > process address space? > I know that we can set page offset boundary using 'CONFIG_PAGE_OFFSET' > when we compile kernel and I was just wondering how we ca

process address space check

2009-02-13 Thread Ye ilho
Dear experts, Is there any command that I can use to know the configuration of process address space? I know that we can set page offset boundary using 'CONFIG_PAGE_OFFSET' when we compile kernel and I was just wondering how we can confirm this after I reboot the machine. Thank you in advance. Il

Re: reverse-engineering a usb device

2009-02-13 Thread Christoph Gysin
> The buttons on USB devices usually are connected into HID interface. I > guess that's how your SanDisk card reader button communicates too. Unfortunately this is not the case. > If you look at the `lsusb -v` output you'll see how many interfaces that > it implements. The MSD (Mass Storage Class

Re: About tasklet and workqueue

2009-02-13 Thread Matthias Kaehlcke
El Fri, Feb 13, 2009 at 11:04:17AM +0800 Peter Chen ha dit: > I read the code about tasklet (softirq.c) and workqueue (workqueue.c), > and there are two points I can't understand, Hope you can tell me why, > and point out if i made any errors below.Thank you. > > 1. Both tasklet and workqueue are

Re: reverse-engineering a usb device

2009-02-13 Thread Daniel Widyanto
Hi, I think the easiest one is to use your linux machine. Insert your card reader, and issue 'lsusb -v'. The buttons on USB devices usually are connected into HID interface. I guess that's how your SanDisk card reader button communicates too. If you look at the `lsusb -v` output you'll see how

Re: reverse-engineering a usb device

2009-02-13 Thread Christoph Gysin
2009/2/13 Microbit_P43000 : > I haven't used SnoopyPro in ages, but IIRC (not sure) you could filter on > certain protocols. Unfortunately SnoopyPro-0.22 (latest release) doesn't support any filtering. > If so, a lot of the mass storage uses RBC commands (scsi), if you can > suppress those, the l