What is the intended function of open() system call?

Vassili Leonov (vleo@linuxmedialabs.com)
Thu, 1 Apr 1999 23:45:07 -0700 (MST)


I was coding a driver and come to a realisation that open() system call is
not a good place to prepare hardware for read or write operatioin, since
dd for example uses RDWR mode to open of= device. And there is no warranty
othewise. Generally, seems like this is a bug in Unix design, but maybe I
do not understand something. Or maybe it's a long lining bug in dd...

#------------------------------------#
| Linux Media Labs LLC | Vassili Leonov
#------------------------------------#
mailto:vleo@linuxmedialabs.com http://linuxmedialabs.com
phone:1-719-231-3173

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/