select_enqueue(9r)select_enqueue(9r)NAME
select_enqueue - General: Adds the current kernel thread
SYNOPSIS
void select_enqueue(
sel_queue_t *selq );
ARGUMENTS
Specifies a pointer to a sel_queue structure.
DESCRIPTION
The select_enqueue routine adds the current kernel thread to the list of kernel threads waiting for a select event on the specified device.
This routine is called when a kernel module's select routine has been called and the requested event cannot be immediately satisfied. For
example, the requested event cannot be immediately satisfied when xxselect is called for the following reasons: To select on input and
there are no characters available When called for output and the kernel module's output buffers are currently full
By calling select_enqueue, the kernel module's select routine ensures that the kernel thread issuing the select call will be blocked until
the requested event can be satisfied or until the select call terminates.
CAUTIONS
You must call the queue_init routine to initialize the sel_queue structure pointer prior to calling select_enqueue. Failure to do so causes
the kernel to panic.
RETURN VALUES
None
FILES SEE ALSO
Routines: queue_init(9r), select_dequeue(9r), select_dequeue_all(9r), select_wakeup(9r)
Data Structures: sel_queue(9s)
System Calls: select(2)select_enqueue(9r)
Check Out this Related Man Page
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)
Hi folks,
As we all know, the "select" function give a number to each element as the number of elements in the select.
for example:
I have a program which ask a user to select a language:
===============================================================================
Please select the... (1 Reply)
hi all!
i have developed a mechanism in system.c to count how many times each kernel call is called. The results are held in an array in system.c . What i want to do is to create a new kernel call which will print this array. I need help in passing the array from system.c to the new kernel call. ... (5 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)
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)
alert_val=$( db2 "select value (( select distinct 1 from opus.alerts where alname = 'MQ_FAILURE_INTERFACE' and
aldatetime > current timestamp - 20 minutes),0) from sysibm.sysdummy1 with ur" | sed -n '/--/ {n; p;}')
Can some one please tell me why alert_val is not able to get the return value... (5 Replies)
I write kernel module with kernel threads using
linux/kthread.h on 2.6.* kernel
I tried to passing data between two kernel threads
with data argument of kthread_run( fun, data , NAME );
but this is not work I dont know why. I tried many possibility
and nothing works.
So I thought that... (0 Replies)
hi,
i need to use the output of select query.
the output i get using
"X=`sqlplus -s $var1/$var1<<eof
select port from table1;`
echo $X "
is
"port ----- 2000"
now i want to use only 2000 in my next command.
hw do i do it? (4 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)
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)
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)