intro(9) Kernel Developer's Manual intro(9)NAME
intro - Introduction to kernel module routines, data structures, and global variables
DESCRIPTION
Section 9 describes the routines, data structures, and global variables used to develop kernel modules. The descriptions are presented in
alphabetical order. Each reference page carries one of the following designators:
9r
Specifies a routine 9s
Specifies a data structure 9v
Specifies a global variable
In general, each reference page describes a single routine, data structure, or global variable. However, in some cases it makes sense to
describe more than one routine or data structure on the same page if they are related. For example, the same reference page describes both
the printf and uprintf routines.
For more information about kernel modules and related routines, data structures, and global variables, refer to Writing Kernel Modules.
intro(9)
Check Out this Related Man Page
thread(9s)thread(9s)NAME
thread - General: Contains kernel threads-related information
SYNOPSIS ----------------------------
Member Name Data Type
----------------------------
wait_result kern_return_t
----------------------------
MEMBERS
Specifies the outcome of the wait. The kernel can set this member to one of the following values: THREAD_AWAKENED, THREAD_INTERRUPTED,
THREAD_TIMED_OUT, THREAD_SHOULD_TERMINATE, and THREAD_RESTART.
DESCRIPTION
The thread data structure contains kernel threads-related information. Kernel modules typically use the wait_result member (with the cur-
rent_thread routine) to check for the result of the wait. The values associated with the wait_result member have the following meanings:
The result of the assert wait is a normal wakeup. The wait condition was interrupted by the clear_wait routine. The specified timeout has
expired. The result of the assert wait is that the current kernel thread should terminate. The current kernel thread should be restarted.
NOTES
The header file <thread.h> shows a typedef statement that assigns the alternate name thread_t for a pointer to the thread data structure.
Many of the kernel threads-related routines operate on these pointers to thread data structures.
The thread data structure is an opaque data structure; that is, all of its associated members (except for the wait_result member) are ref-
erenced and manipulated by the operating system and not by the user of kernel threads.
FILES SEE ALSO
Routines: clear_wait(9r), current_thread(9r), thread_block(9r), thread_set_timeout(9r), thread_wakeup(9r), thread_wakeup_one(9r)thread(9s)
Well, someone created a flash intro for us (their first attempt at SWiSH!)
OK,
SECOND DRAFT:
https://www.unix.com/test_intro2.swf
---------------------------
FIRST DRAFT:
https://www.unix.com/test_intro1.swf
Notice it says "Search before posting a question".....
Well????... (24 Replies)
Hi,
I have a doubt in introducing a delay in the programs.
We know that we do have a sleep() function/api using which
we can bring a delay in terms of seconds.
A minimum delay can be atleast 1 second.
Now I'm bothered about how to introduce a delay that is just
less than a second. Like... (3 Replies)
Hi all,
i would like to know how to introduce a delay in the execution of a cmd?
am trying to copy a file which is about 650 mb and then perform some actions on it..
however since its huge i would like to introduce a delay in exection until the process is over
i dont want it to proceed to... (10 Replies)
Hello, I'm only taking Intro to UNIX in school right now, so please bear with me. My problem is with a sort-of recycle-bin rig I've created for fun. I'm using Ubuntu 9.04, I am the admin. (only user, actually) of this computer. I'm using this script in ~/.bashrc
# if files exist, remove contents... (6 Replies)
Hello Experts,
I am new to this forum, I would like to do the following changes in one of the column of a txt file, which is having around 9 column.
For example, column 3 is having letters like this
AB11
AB12
C
CA
CB
AC1
AC2
I would like to convert the same column as follows
... (5 Replies)
Hi All,
How to introduce delay in the Bash/Shell Script till key stroke.
Below is the requirement..
1.Execute set of commands.
2.Display the message echo "press any key to continue"
Introduce a delay till key stroke.
3.Execute next set of commands.
Thanks in Advance
Sunil.K (5 Replies)
Hello,
To learn ZFS, i try to create pool .
and for that i want create 10 files with 512MB (because i dont have multiple disks and multiple controllers)
ADMIT THAT THIS IS TEN HIGH-PERFORMANCE HARD DRIVES
To get this 10 files,all of them have the same size : 512MB,
I do these... (9 Replies)
Dear Help,
I have an input file which looks like below
002 1000 2000 3000
003 2000 3000 4000
005 1000 2000 6000
I would like to have an output which inserts the missing number in sequential sorting as shown below...
001 0 0 0
002 1000 2000 3000
003 2000 3000 4000
004 0 0 0
005 1000... (5 Replies)
I am working with a log file that I am trying to clean up by removing non-English ASCII characters. I am using Bash via Cygwin on Windows.
Before I start I set:
export LC_ALL=C
I clean it up by removing all non-English ASCII characters with the following command;
grep -v $''... (4 Replies)
https://www.unix.com/members/1-albums212-picture687.png
Hunting Anomalous Bots - An Introduction to Cyber-Objects - Live From Cyberspace
Click title image (above) for video tutorial. (5 Replies)