Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 1995 01:34:51 +0000 ()
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        hackers@freebsd.org
Subject:   uio question...
Message-ID:  <199511290134.BAA09808@genesis.atrad.adelaide.edu.au>

next in thread | raw e-mail | index | archive | help

Okay, my entry for the lame-device-driver-question of the month 8)

Given a device read function passed a uio struct, what's the correct way
to determine the total size of the read request?  

I have two possibles here : walk the array of iovec structures, or
contemplate the uio_resid field, which appears to be used by a number of 
other drivers...

Experience?

-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and      (GSM mobile) 041-122-496        [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] "Who does BSD?" "We do Chucky, we do."                               [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511290134.BAA09808>