IPB
>  Man Pages > Linux > openSUSE 10.2 > Section 8 > raw man page

raw man page

Section 8 - openSUSE 10.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


RAW(8)                                                                  RAW(8)



NAME
       raw - bind a Linux raw character device

SYNOPSIS
       raw /dev/raw/raw<N> <major> <minor>

       raw /dev/raw/raw<N> /dev/<blockdev>

       raw -q /dev/raw/raw<N>

       raw -qa

DESCRIPTION
       raw  is  used  to  bind a Linux raw character device to a block device.
       Any block device may be used: at the time of binding, the device driver
       does  not  even  have to be accessible (it may be loaded on demand as a
       kernel module later).

       raw is used in two modes: it either sets raw  device  bindings,  or  it
       queries  existing bindings.  When setting a raw device, /dev/raw/raw<N>
       is the device name of an existing raw device node  in  the  filesystem.
       The  block device to which it is to be bound can be specified either in
       terms of its major  and  minor  device  numbers,  or  as  a  path  name
       /dev/<blockdev> to an existing block device file.

       The  bindings  already  in existence can be queried with the -q option,
       with is used either with a  raw  device  filename  to  query  that  one
       device, or with the -a option to query all bound raw devices.

       Unbinding can be done by specifying major and minor 0.

       Once  bound  to  a  block  device, a raw device can be opened, read and
       written, just like the block device it is bound to.  However,  the  raw
       device  does  not behave exactly like the block device.  In particular,
       access to the raw device  bypasses  the  kernel's  block  buffer  cache
       entirely: all I/O is done directly to and from the address space of the
       process performing the I/O.  If the underlying block device driver  can
       support  DMA,  then  no data copying at all is required to complete the
       I/O.

       Because raw I/O involves direct hardware access to a process's  memory,
       a  few extra restrictions must be observed.  All I/Os must be correctly
       aligned in memory and on disk: they must start at a  sector  offset  on
       disk, they must be an exact number of sectors long, and the data buffer
       in virtual memory must also be aligned to  a  multiple  of  the  sector
       size.  The sector size is 512 bytes for most devices.

OPTIONS
       -q     Set  query  mode.  raw will query an existing binding instead of
              setting a new one.

       -a     With -q ,  specifies  that  all  bound  raw  devices  should  be
              queried.

       -h     provides a usage summary.

BUGS
       The  Linux  dd  (1)  command  does not currently align its buffers cor-
       rectly, and so cannot be used on raw devices.

       Raw I/O devices do not maintain cache coherency with  the  Linux  block
       device  buffer  cache.  If you use raw I/O to overwrite data already in
       the buffer cache, the buffer cache will no  longer  correspond  to  the
       contents  of the actual storage device underneath.  This is deliberate,
       but is regarded either a bug or a feature depending on who you ask!

AUTHOR
       Stephen Tweedie (sct@redhat.com)



Version 0.1                        Aug 1999                             RAW(8)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Sat Sep 8 16:40:53 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

svn man page (6164 hits)
(FreeBSD 6.2)

sqlite3 man page (5598 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (5045 hits)
(Solaris 10 11_06)

CPAN man page (4791 hits)
(Suse Linux 10.1)

ssh man page (4439 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (3525 hits)
(Solaris 10 11_06)

signal man page (3395 hits)
(Suse Linux 10.1)

netcat man page (3382 hits)
(Suse Linux 10.1)

pprosetup man page (2889 hits)
(Solaris 10 11_06)

startproc man page (2739 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Area :: Touch Sensor IC :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum