From mboxrd@z Thu Jan 1 00:00:00 1970 From: gmate.amit@gmail.com (Kumar Amit Mehta) Date: Fri, 2 Aug 2013 11:25:54 +0530 Subject: Conceptual questions about device driver In-Reply-To: References: Message-ID: <20130802055554.GA2738@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Aug 01, 2013 at 02:55:42PM -0600, neha naik wrote: > 2. Also i want to understand what the device driver does say if in a > multiple paged bio, some of the pages get written > and some don't, we send the error in the bio. But what about the pages > it has already written??? It can't possibly > do anything about it, right? What do you mean by multiple paged bio? A bio, broken down into bio_vec is _always_ set of pages(or Am I missing something?), So, most of the time,you _will_ have a bio containing multiple pages. What about other field of bio structure; bi_idx, bi_size etc, Can we use those for partial completion? !!amit