usb mass storage ADSC cmd

2014-06-28 Thread Dave Tian
Hi there, I am trying to implement a communication between the host and a usb mass storage device using ADSC cmd. The device is using the g_mass_storage gadget driver. So far, broken pipe (-32) from the host side is all what I have got. My questions are: 1. Could the device support ADSC cmd ev

Re: Delay in Printk Messages.

2014-06-28 Thread mhornung . linux
Hello Arun Kumar, On Sat, 28. Jun 23:03, Arun Kumar wrote: > I am able to read my printk messages in the kernel buffer only after > unloading the module.. > Is there some reason or configuration behind this. > > I used a simple kernel module with only init and exit functions, and > after loadin

Re: Delay in Printk Messages.

2014-06-28 Thread Aruna Hewapathirane
Try echo "7" > /proc/sys/kernel/printk to enable all console log levels. The numbers are corresponding to below: #define KERN_EMERG "<0>" /* system is unusable*/ #define KERN_ALERT "<1>" /* action must be taken immediately*/ #define KERN_CRIT "<2>" /* critical conditions*/ #define KERN_ERR "<3>"

Re: Delay in Printk Messages.

2014-06-28 Thread Kristofer Hallin
Try 'sysctl kernel.printk=7' where 7 is one of the levels defined in "include/linux/kern_levels.h". On Sat, Jun 28, 2014 at 7:33 PM, Arun Kumar wrote: > I am able to read my printk messages in the kernel buffer only after > unloading the module.. > Is there some reason or configuration behind thi

Delay in Printk Messages.

2014-06-28 Thread Arun Kumar
I am able to read my printk messages in the kernel buffer only after unloading the module.. Is there some reason or configuration behind this. I used a simple kernel module with only init and exit functions, and after loading the module i cannot see the message printed by the "module_init" func

Re: Eudyptula Challenge How To Prepare

2014-06-28 Thread karthik nayak
Read The LInux Device Drivers Book :) On Sat, Jun 28, 2014 at 10:57 AM, me storage wrote: > Hi > I have been waiting for my Task 04 Result from last 3 days .I know so many > people are waiting more than this.So can one please tell me How to prepare > for the next Task i.e what are the concepts

Re: Kernel memory leak

2014-06-28 Thread Anil Shashikumar Belur
On Saturday 28 June 2014 12:29 PM, Santhosh Kumar wrote: > > Is there a way to trace the allocations of memory from different buckets of > kmalloc ? You could try out kmemleak - https://www.kernel.org/doc/Documentation/kmemleak.txt ___ Kernelnewbies mai

Kernel memory leak

2014-06-28 Thread Santhosh Kumar
I am suspecting a memory leak in a kernel module that does layer 2 switching of data packets. In the vmstat -m output the Num and Total keeps going up for the kmalloc-512.. kmalloc-512 15232 15264512 16 Is this a clear indication of leak in the kernel or can there be false