select_wakeup(9r)select_wakeup(9r)NAME
select_wakeup - General: Wakes up a kernel thread
SYNOPSIS
void select_wakeup(
sel_queue_t *selq );
ARGUMENTS
Specifies a pointer to a sel_queue structure.
DESCRIPTION
The select_wakeup routine wakes up a kernel thread that is suspended while waiting for an event on the specified device. A user-level
process can use the select system call to cause the process to be suspended while waiting for an event to happen on a device. For example,
a graphics application may issue a select call while waiting for mouse or keyboard input to arrive. In this case the process would issue
the select system call, which would indirectly call the graphics driver's select routine (through the driver's select entry point in the
dsent table) to determine if any input is available. If input is available, the select call may return immediately. If no input is cur-
rently available, the graphics driver would suspend the process until input arrived.
For this example, when the graphics driver has received input (typically through its interrupt handler), it causes any processes suspended
from calling select to continue by calling the select_wakeup routine. This causes any process currently suspended on the select channel
(as specified by the selq argument) to resume.
RETURN VALUES
None
SEE ALSO
Routines: select_dequeue(9r), select_dequeue_all(9r), select_enqueue(9r)
System Calls: select(2)select_wakeup(9r)
Check Out this Related Man Page
wakeup(9r)wakeup(9r)NAME
wakeup - General: Wakes up all processes sleeping on a specified address
SYNOPSIS
void wakeup(
caddr_t channel );
ARGUMENTS
Specifies the address on which the wakeup is to be issued.
DESCRIPTION
The wakeup routine wakes up all processes sleeping on the address specified by the channel argument. All processes sleeping on this address
are awakened and made ready to be scheduled according to the priorities they specified when they went to sleep. It is possible that there
are no processes sleeping on the channel at the time the wakeup is issued. This situation can occur for a variety of reasons and does not
represent an error condition.
The sleep and wakeup routines block and unblock a process. Generally, a device driver issues these routines on behalf of a process request-
ing I/O while a transfer is in progress. That is, a process requesting I/O is put to sleep on an address associated with the request by the
appropriate device driver routine. When the transfer has asynchronously completed, the device driver interrupt service routine issues a
wakeup on the address associated with the completed request. This action makes the relevant process to be scheduled.
The process resumes execution within the relevant device driver routine at the point immediately following the request to sleep. The
driver, on behalf of the process, can then determine whether the condition for which it was sleeping (in this example, completion of an I/O
request) has been removed. If so, it can continue on to complete the I/O request. Otherwise, the appropriate driver routine can decide to
put the process back to sleep to await removal of the indicated condition.
RETURN VALUES
None
SEE ALSO
Routines: mpsleep(9r), sleep(9r)wakeup(9r)
how to know the information of the waiting process
how to calculate the time of the process that it has taken to execute
i want to make a program that Should be able to keep a log of the processes expired(The log should contain the starting time, expiry time, time slices used, total execution... (2 Replies)
Well, I am not even sure if its failing, cause at the other end I have a select call and it wakes up and reads the data I sent fine.
Ok here is the issue, I have a UDP socket(non blocking) through which I push some data to another port. At the other end I have select loop, waiting for this data.... (6 Replies)
Hi all,
I am trying to select some columns from a file, based on the list of values.
Would like to know how best I can achive this.
If coulmn 1 has a value of 57 then print the ist column (This works)
awk -F' ' '{if ( $1 == 57 ) {print $1}}' file.txt
Now my requirement is that I have to... (14 Replies)
I think I saw another post where someone said he an issue with a 'while within a while' but there were no solutions on it.
I have an input file of data columns separated by pipes "|" and I want to set each column to a variable and do something with it. This I can do.
When I get to a certain... (5 Replies)
edit by bakunin: I have split the thread to reflect the two different themes it had. Read the original thread here. All the other posts there dealing with the new theme have been moved here, the ones which addressed both i have copied and edited. Enjoy the discussion.
BTW, you don't want to... (29 Replies)
Below is my code. Every once in a while the select call takes as long as 150 seconds (discovered by printing time before and after this statement) while the timeout specified into it is only 1 second. Any clue why? I can't believe that select call which has been around for centuries can have a bug,... (15 Replies)
Requirement:-
SQLs
select name from v$datafile;
select name from v$controlfile;
select name from v$tempfile;
select MEMBER from v$logfile;
These sqls has to run in one script and o/p of each sql has to write in seperate files.But the o/p is like if we issue
select name from... (2 Replies)
Hi,
I have a text file with multiple sql statements in which I have pick only the below select update and delete statements and do print as given below.
All the select,update,delete statements will be as same as ( subquery with ().all statements ending with ; ) the examples given below.
1)... (19 Replies)
I want to select contents between two numbers say 1. and 2. from an output file which has many numbers but only the these two ending with a dot(.) eg 1. 2 . 32. etc I was looking to select with the use of a counter then modify the selected contents and put it in an output file where again the... (3 Replies)
We just installed the latest Oracle Solaris 10 Sparc 64-Bit CPU patch (10/2012) and we are no longer able to access the GUI or the console after the OBP. We believe that this is a graphics issue. It has affected out t2000 xvr-200 graphics server and also out v440 xvr-100 graphics server.
We are... (2 Replies)
I have a select menu driven script using a case statment and cannot control what happens after a user's input is just <ENTER> or the <SPACEBAR>+<ENTER>. I want it to just hit the "MAIN" function and not redraw the options. I've look everywhere for the answer and am at a loss.
Here's the code:... (4 Replies)
I saw several thread for this issue but none addresses my issue.
I have tried read -t but the result is read bad options
My requirement is
1. Ask for input
2. If input = y or no input in 60 seconds
then continue processing
else
exit
fi
Kindly consider this urgent. (8 Replies)
I recently bought a new HP Spectre x360 laptop and installed Linux (Ubuntu 16.04 LTS 64 bit) for the first time.
I am seeing various bugs. I don't know if the problems are due to:
(a) Hardware problems with the new laptop.
(b) Software issues, i.e. Ubuntu not working with the other... (7 Replies)
From my script
#!/bin/bash
echo "Which of these does not belong in the group?"; \
select choice in Mercedes Audi Chevrolet Audi Porsche BMW Volkswagen; do
if ]; then
echo "Correct! Chevrolet is not a German marque."; break; fi
echo "Errr...no. Try again."
doneI'm... (3 Replies)