LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2005, 01:53 PM   #1
Igor007
Member
 
Registered: Aug 2004
Posts: 76

Rep: Reputation: 15
downgrade_write and down_write


Hi

void downgrade_write(struct rw_semaphore *sem);

Is it required to call
void up_write(struct rw_semaphore *sem)
or how it will know that changes has been made and finished???

If up function should be call what is difference between
void down_write(struct rw_semaphore *sem)
and
void downgrade_write(struct rw_semaphore *sem)???


Any help will be appreciated.
 
Old 09-21-2005, 02:08 AM   #2
cigarstub
Member
 
Registered: Sep 2005
Posts: 145

Rep: Reputation: 15
void downgradewrite(struct rw *sem)
means a function whose return value is unknown type. It accept an argument: pointer to a variable of type struct rw.
 
Old 09-21-2005, 05:42 AM   #3
Igor007
Member
 
Registered: Aug 2004
Posts: 76

Original Poster
Rep: Reputation: 15
I understand that
But in what schema this function (downgrade_write) can be used???

down_write can be used in the following schema

void down_write(struct rw_semaphore *sem) ;
void up_write(struct rw_semaphore *sem) ;

//*****************************************

void downgrade_write(struct rw_semaphore *sem);
void up_write(struct rw_semaphore *sem) ;


//*****************************************

or other schema???
 
  


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



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration