Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-19-2003, 08:23 PM   #1
LQ Newbie
Registered: Jun 2003
Location: Gangavathi, Karnataka(state), INDIA
Distribution: Redhat 7.3
Posts: 28

Rep: Reputation: 15
Question O_EXCL on device special files


what does open on device special file /dev/hdax with O_EXCL flag mean ??
a. Does it mean an exclusive access of device file until it is closed??
b. Does it mean the device file is locked so that other programs for .eg mount can't access this device file.
or mount is blocked until lock on device file is released.

int fd;
chat * devfile = " /dev/hda9" ;

fd = open(devfile, O_RDWR | O_EXCL );

Mean while,
How to lock a device special file???
I mean i need for a daemon to lock a device file and mount command should not be able to acces this file?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
block special and character special files s_shenbaga Linux - Newbie 4 06-23-2015 02:16 AM
special device sda1 does not exist mer0090 Linux - Hardware 3 01-22-2005 08:36 AM
special device sda1 does not exist mer0090 Fedora 6 01-21-2005 06:23 AM
no such special device... :-/ prettyconfused Slackware 3 01-20-2004 11:58 AM
special device /dev/cdrom does not exist anolan514 Linux - Newbie 1 11-14-2001 10:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration