All of lore.kernel.org
 help / color / mirror / Atom feed
From: jeshkumar555@gmail.com (Jeshwanth Kumar N K)
To: kernelnewbies@lists.kernelnewbies.org
Subject: USB file mmap
Date: Tue, 8 Jul 2014 01:26:26 +0530	[thread overview]
Message-ID: <CAC-LjFvYkJWXc-RPQGJky+OxOE70XSm1H-uMfcTvFuzUHP-J7A@mail.gmail.com> (raw)
In-Reply-To: <20140707163430.GA1137@kroah.com>

Hi Greg,

Thanks for the reply.

I recently purchased an mbed board
https://mbed.org/platforms/mbed-LPC1768/ (friend recommended) to learn
USB Mass storage class. And used OpenLPC usb stack with fatfs example
to check how it works (used protocol analyser and stuff, to know whats
happening). In that they are reading each buffer, i mean copying
buffer (8k) of data to RAM and process it. And other idea I found is
using diskio function in openLPC stack to read the data in USB flash
(but this is without file system).

As a Linux user I knew in Linux we can do mmap easily for a file (with
filesystem). So thought of asking from where to start understanding
these concepts :).

Greg is it OK to ask this question here?

Thanks
On 07-Jul-2014 10:00 pm, "Greg KH" <greg@kroah.com> wrote:

> On Mon, Jul 07, 2014 at 07:30:07PM +0530, Jeshwanth Kumar N K wrote:
> > Hello List,
> > I am trying to understand mmap on files residing in USB flash, so can you
> > please give a pointer from where I can start to understand this? I mean
> how it
> > works, and which part in kernel takes care of it.
>
> That's a _huge_ stack you are talking about here involving a vfs, the
> memory management core, a filesystem, block layer, SCSI, and USB, at the
> very least.
>
> What _exactly_ are you looking to understand here?  And where in the
> code have you looked and need help with?  What documents have you read
> that were unclear?  And why do you need this information?
>
> greg k-h
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140708/06775a0d/attachment.html 

  reply	other threads:[~2014-07-07 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07 14:00 USB file mmap Jeshwanth Kumar N K
2014-07-07 16:34 ` Greg KH
2014-07-07 19:56   ` Jeshwanth Kumar N K [this message]
2014-07-07 20:29     ` Greg Kroah-Hartman
2014-07-07 20:32       ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAC-LjFvYkJWXc-RPQGJky+OxOE70XSm1H-uMfcTvFuzUHP-J7A@mail.gmail.com \
    --to=jeshkumar555@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.