LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-19-2003, 08:23 PM   #1
devershetty
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


Hi..

what does open on device special file for.eg. /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.

eg.
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?

TIA.
-Kotresh.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 AM.

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