DMdFdOpen
Purpose Use
is already open.
Syntax
DMdDev DMdFdOpen (fd)
Return value Device handle if successful; otherwise,
Description
DMdFdOpen()
open file descriptor
provides access to the device. To close the DOME device,
use the
device handle.
Errors If
to
Example This example opens the DOME device /dev/
#include "domeMd.h"
DMdDev
DLong
fd = open ("/dev/m2pci0.0", O_RDWR);
if (fd == -1)
dev = DMdFdOpen (fd);
(*dev->Close) (dev);
See also
DMdOpen, Close, DMdDev Structure
to access a DOME device if the device file
DMdFdOpen
Parameter Type
DLong
opens the DOME device specified by the
member function (page 76) of the returned
Close()
returns
DMdFdOpen()
.
stderr
dev;
fd;
exit (-1);
.
.
.
Name
Description
File descriptor of the opened
fd
device file
and returns the device handle that
fd
, an error message prints
NULL
DMdFdOpen | 75
.
NULL
0.0.
m2pci