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
assert_wait_mesg(9r)assert_wait_mesg(9r)NAME
assert_wait_mesg - General: Asserts that the current kernel thread is about to block (sleep)
SYNOPSIS
void assert_wait_mesg(
vm_offset_t event,
boolean_t interruptible,
char *message );
ARGUMENTS
Specifies the event associated with the current kernel thread. Specifies a Boolean value that indicates how the kernel thread is awakened.
You can pass one of the following values: The current kernel thread is interruptible. This value means that a signal can awaken the current
kernel thread. The current kernel thread is not interruptible. This value means that only the specified event can awaken the current ker-
nel thread. Specifies a mnemonic for the type of wait. The ps command uses this mnemonic to print out more meaningful messages about a
process.
DESCRIPTION
The assert_wait_mesgroutine asserts that the current kernel thread is about to block (sleep) until the specified event occurs. This routine
sets a thread wait bit in the pointer to the thread structure associated with the current kernel thread. This bit signifies that this ker-
nel thread is on the appropriate wait hash queue, waiting for a wakeup call.
To actually block (put to sleep) the current kernel thread, call thread_block.
To issue a wakeup call on the specified event, call the thread_wakeup_prim or clear_wait routine.
CAUTIONS
You must not call assert_wait_mesg from a device driver's interrupt handler. The reason for this is that at interrupt context there is no
process to be put to sleep.
RETURN VALUES
None
SEE ALSO
Data Structures: thread(9s)
Routines: clear_wait(9r), current_thread(9r), thread_block(9r)
Reference Pages Section 1: ps
assert_wait_mesg(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)