Hello,
please give me some help on usb gadget drivers in embedded Linux.
I compiled the usb device controller driver (/drivers/usb/gadget/pxa27x_udc.c)
as a module and tried to load it with the command modprobe pxa27x_udc
This gives the error "No such device".
Is that a mistake in the kernel s
On 11/04/2009 12:36 AM, Bryan Donlan wrote:
I thought hrtimers allow higher-precision wakeups these days?
Of course, if you only want to sleep for a few microseconds, the
context switch might take longer than you want to sleep...
Also, you may not be in a context where you can schedule.
Somet
Thanks a lot
On Wed, Nov 4, 2009 at 2:44 AM, Daniel (Youngwhan) Song wrote:
> I have used Lauterbach, and it seems to work well.
>
> Best Regards,
> Daniel (Youngwhan) Song
>
>
>
>
> On Tue, Nov 3, 2009 at 11:34 PM, Shankar Ganesh
> wrote:
>
>> Hi Friends,
>>
>> I am new to MIPS Linux. I would
Hello,
I am writing MTP class driver for Cowon Mp3 player. The device has MTP as
well as mass storage class support. Although i registered MTP class driver
with relevant vendor id and product id, the same info is also available with
Mass storage class(MSD) driver, hence on plug-in, by default devi
Hi Nidhi,
You've got the function semantics wrong. It does not intend to give you
the "last byte of nth page".
Rather, the "last byte OF FILE X in nth page".
inode->i_size = file size.
Thanks,
Rajat
From: nidhi mittal hada [mailto:nidhimitta
in simple words--- simple maths
--|--|--|-|
0 page1(1*2^12) page 2 2*2^12 page3
3*2^12 page4 4*2^12
now page_nr=3
we want last byte of p
Hi,
The function calculates the last byte in a page OF A PARTICULAR FILE.
static unsigned
ext2_last_byte(struct inode *inode, unsigned long page_nr)
{
unsigned last_byte = inode->i_size;
/* Currently, last_byte = file size */
last_byte -= page_nr << PAGE_CACHE_SHIFT;
/* Current
/*
* Return the offset into page `page_nr' of the last valid
* byte in that page, plus one.
*/
static unsigned
ext2_last_byte(struct inode *inode, unsigned long page_nr)
{
unsigned last_byte = inode->i_size;
last_byte -= page_nr << PAGE_CACHE_SHIFT;
if (last_byte > PAGE