RD(9F) Kernel Functions for Drivers RD(9F)NAME
RD, rd - get pointer to the read queue
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
queue_t *RD(queue_t *q);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to the write queue whose read queue is to be returned.
DESCRIPTION
The RD() function accepts a write queue pointer as an argument and returns a pointer to the read queue of the same module.
CAUTION: Make sure the argument to this function is a pointer to a write queue. RD() will not check for queue type, and a system panic
could result if it is not the right type.
RETURN VALUES
The pointer to the read queue.
CONTEXT
RD() can be called from user or interrupt context.
EXAMPLES
Example 1: Function page reference
See the qreply(9F) function page for an example of RD().
SEE ALSO qreply(9F), WR(9F)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.10 15 Nov 1991 RD(9F)
Check Out this Related Man Page
RD(9F) Kernel Functions for Drivers RD(9F)NAME
RD, rd - get pointer to the read queue
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
queue_t *RD(queue_t *q);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to the write queue whose read queue is to be returned.
DESCRIPTION
The RD() function accepts a write queue pointer as an argument and returns a pointer to the read queue of the same module.
CAUTION: Make sure the argument to this function is a pointer to a write queue. RD() will not check for queue type, and a system panic
could result if it is not the right type.
RETURN VALUES
The pointer to the read queue.
CONTEXT
The RD() function can be called from user, interrupt, or kernel context.
EXAMPLES
Example 1 Function page reference
See the qreply(9F) function page for an example of RD().
SEE ALSO qreply(9F), WR(9F)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.11 16 Jan 2006 RD(9F)
I want to count the number of occurence of perticular word from one text file.
Please tell me "less" command is work in ksh or not. If it is not working then instead of that which command will work. :confused: (40 Replies)
hello ,
I have to write an application in which I had to implement both Socket Comminication and IPC- message queues.
and that process should run in Infinite loop as well I had to continously check and send data through both type of communications...
What should I use to implement it...
I had... (34 Replies)
Hi, I have a text file with 1500 words. Could it be a script that will keep the words that only have all these letters:
n i o m s c t a
If you could show me the way I would be greatful! (32 Replies)
So I've been working on this for some time now and can't seem to find the solution that works for me. I'm working in C/Unix. Basically, I want to take a user input and output something different. For example, I want to take a password and output *'s. In another instance, I want to take inputed... (35 Replies)
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (45 Replies)
Hi,
At first I have to say that I know nothing about Linux :(
But I am looking for solution how to copy one file from internal Lowrnace HDS flash memory.
Lowrance HDS is Linux based device.
Here is the link for firmware update files for this unit.
At the end of main firmware file there... (62 Replies)
example:
i have the following text file...
i am very tired.
i am busy
i am hungry
i have to find the number of occurence of a particular word 'am' from the text file.. can any one give the shell script for it (34 Replies)
Hi Guys
I am trying to move file containing more than two - at the 3rd line of each files to a new directory. The files are something like this :
****** Text ******
/text/
text text
I want to make sure the search effect only take place on the 3rd line one as there might me... (46 Replies)
Hey,
Now that I'm caught-up on a number of forum tasks, I can turn my attention to the next-generation UserCP (and learn VueJS) for the site.
Today I created this (not yet functional) demo using Vue;
https://www.unix.com/cp/index.php
What do you think? (36 Replies)