Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

select_enqueue(9r) [osf1 man page]

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)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

"select" function sequence

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)
Discussion started by: nir_s
1 Replies

2. Programming

kernel-kernel call communication

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)
Discussion started by: aureliano
5 Replies

3. UNIX for Dummies Questions & Answers

Awk - select from a list

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)
Discussion started by: simha77777
14 Replies

4. UNIX for Advanced & Expert Users

kernel call problem

hi all I want to make a kernel call which takes as input an integer x and prints 2*x Anyone who knows how could i do that? (1 Reply)
Discussion started by: sasa
1 Replies

5. UNIX for Advanced & Expert Users

How to select Test in Vi Editor

Guys, file1 is 10pages long in vi. How to select the complete contents of the life. Regards (2 Replies)
Discussion started by: Aejaz
2 Replies

6. Programming

select function

Dear all, I am using select function for the socket programming. What is the purpose of except fd's fd set in the argument. (0 Replies)
Discussion started by: nagalenoj
0 Replies

7. Shell Programming and Scripting

On how to select the right tool for a given task

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)
Discussion started by: cfajohnson
29 Replies

8. UNIX for Dummies Questions & Answers

Not able to get value in the variable

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)
Discussion started by: mamta
5 Replies

9. UNIX for Advanced & Expert Users

Passing socket struct between kernel threads - module programming

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)
Discussion started by: marcintom
0 Replies

10. Shell Programming and Scripting

using the output of select

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)
Discussion started by: deep_bree
4 Replies

11. Shell Programming and Scripting

Script to create files

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)
Discussion started by: Sanal
2 Replies

12. Shell Programming and Scripting

How do i select all contents between two numbers?

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)
Discussion started by: ausfragen
3 Replies

13. UNIX for Beginners Questions & Answers

Orienting select choices vertically

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)
Discussion started by: Xubuntu56
3 Replies