Re: unable to rmmod

2008-11-06 Thread rahul p
Forcing unload of a module is not something I would recommend for it makes the kernel unreliable. It would be helpful if you can submit the opps as a bug report and get it fixed. - Rahul On 11/5/08, nidhi mittal [EMAIL PROTECTED] wrote: Hi i m facing this prob from long that when i use a

Re: how to ask grep to search specific file recurisively?

2008-11-06 Thread sahlot arvind
In case of exec, a separate grep is invoked for each file found by find. So if there are 100 files found, you will be invoking 100 greps. In case of xargs, a set of files is given as argument to grep, you can also specify the number of files to be given in each set. e.g. find . -type f -iname *.h

utrace vs ptrace

2008-11-06 Thread Peter Teoh
this is the paper from OLS2008: http://ols.fedoraproject.org/OLS/Reprints-2008/yamato-reprint.pdf check out page 11: where the interrupts nos is shownnoticed how utrace cut down the interrupts by a whole lot. The amazing part is that utrace can reduce the interrupts (and thus the

Which routine does make dev file of usb char device ?

2008-11-06 Thread J.H.Kim
Hi, everyone I'm looking for codes which makes dev files (for example, /dev/usb/lp0 for usb printer) of USB character devices. Is it udev or kernel driver module? If it is udev, how does it determine the major and minor number of the device? The uevent message from kernel for usb printer

Re: processes and swapping

2008-11-06 Thread Mulyadi Santosa
Hi... On Thu, Nov 6, 2008 at 1:16 PM, Sukanto Ghosh [EMAIL PROTECTED] wrote: Hi, Couple of questions: 1. How to determine the number of processes in memory ? (inside kernel code, not shell : ps -ef | wc -l ) i forgot the list name, but all you need is to walk over the run queue that

Re: gadget_serial

2008-11-06 Thread Alexey Klimov
Hello, Thomas On Thu, Nov 6, 2008 at 7:47 PM, Thomas Rega [EMAIL PROTECTED] wrote: Can anyone give me a hint where I can find the sources for drivers/usb/gadget/serial.c for the kernel 2.4? I mean the 'old-style' drivers/usb/gadget/serial.c which existed from kernel version 2.6.2 till

Re: Which routine does make dev file of usb char device ?

2008-11-06 Thread Greg KH
On Fri, Nov 07, 2008 at 12:38:44AM +0900, J.H.Kim wrote: Hi, everyone I'm looking for codes which makes dev files (for example, /dev/usb/lp0 for usb printer) of USB character devices. Is it udev or kernel driver module? udev. If it is udev, how does it determine the major and minor

RE: Which routine does make dev file of usb char device ?

2008-11-06 Thread Vivek Kumar Gupta
If it is udev, how does it determine the major and minor number of the device? From the dev file in the sys/class/... file for the device, or from the uevent itself. newer versions of udev only use the uevent, and don't need sysfs. Just a small question, which newer version of kernel don't

Re: Which routine does make dev file of usb char device ?

2008-11-06 Thread Greg KH
On Fri, Nov 07, 2008 at 10:09:10AM +0530, Vivek Kumar Gupta wrote: If it is udev, how does it determine the major and minor number of the device? From the dev file in the sys/class/... file for the device, or from the uevent itself. newer versions of udev only use the uevent, and don't

RE: Which routine does make dev file of usb char device ?

2008-11-06 Thread Vivek Kumar Gupta
Yes got it, thanks. Sorry it was a silly question. Regards Vivek -Original Message- From: Greg KH [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 10:20 AM To: Vivek Kumar Gupta Cc: Kernel Newbies Subject: Re: Which routine does make dev file of usb char device ? On Fri, Nov

How to convert function pointer to function name

2008-11-06 Thread J.H.Kim
Hi, everyone How can I convert function pointer to function symbol to print out the name of the function? For example, in console_init(), I'd like to print out the function name of (*call)() using printk(). call = __con_initcall_start; while (call __con_initcall_end) {

Re: How to convert function pointer to function name

2008-11-06 Thread Frédéric Weisbecker
2008/11/7 J.H.Kim [EMAIL PROTECTED]: Hi, everyone How can I convert function pointer to function symbol to print out the name of the function? For example, in console_init(), I'd like to print out the function name of (*call)() using printk(). call = __con_initcall_start;

Re: gadget_serial

2008-11-06 Thread Preeti
On Fri, Nov 7, 2008 at 12:01 AM, Alexey Klimov [EMAIL PROTECTED]wrote: Hello, Thomas On Thu, Nov 6, 2008 at 7:47 PM, Thomas Rega [EMAIL PROTECTED] wrote: Can anyone give me a hint where I can find the sources for drivers/usb/gadget/serial.c for the kernel 2.4? I mean the 'old-style'