10-08-2002
I do understand that Perderabo. I am working on SCO ver 5.05. SCO has following device driver entry points : close , halt , init , intr , ioctl , open , pminit , poll , print , probe , proc , read , start , strategy , write. Appologies if I am wrong.
I would like reframe my question again :
a)What is the full extension for the kernel resource structure 'bdevsw' and 'cdevsw' . Is it block or charcter device software table or just pronounced as 'bdevsw' and 'cdevsw'.
b)In a streams device driver is it that the all the modules in the driver read and write queue has its own read and write queues. Modules communicate with each other with respect to their read or wirte queues but are confied to the driver's read or write queue modules only. For elaborating my idea I put forward a virtual visual diagram. The pair of driver's read and write queues can be imagined as a pair of set of train tracks.Modules can be thaught as stations capable of doing some processing. It is not necessary that number of modules in write queue be the same in read queue of the driver.The module in the driver write queue can refer to its read/write queue but it cannot refer to the read or write queue's of any module in read queue of the driver.If you are abel to get the picture,is my opinion correct ?
Thanks in advance for all technical helps.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
in windows machine...
C:\2\test>perl -version
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
------------------------------------------
what is the difference b\w subroutine calls:
sub_routine_name("-----");
and
... (2 Replies)
Discussion started by: sekar sundaram
2 Replies
2. UNIX and Linux Applications
I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this:
- points in map view (no 3D view)
- color of each point should depend on its z-value.
- I want to define my own color scale
-... (0 Replies)
Discussion started by: karman
0 Replies
3. UNIX for Advanced & Expert Users
hi all,
I wanted to know how we can copy files to dirs, through a routine and when the file and the dir are specified as parameters for that routine and explicitly called?
Eg: suppose i want to copy file1 to /tmp then
myproc()
{
.
.
}
myproc /path/file1 /tmp/
These parameters when... (1 Reply)
Discussion started by: wrapster
1 Replies
4. Shell Programming and Scripting
hi all,
I wanted to know how we can copy files to dirs, through a routine and when the file and the dir are specified as parameters for that routine and explicitly called?
Eg: suppose i want to copy file1 to /tmp then
myproc()
{
.
.
}
myproc /path/file1 /tmp/
These parameters when... (4 Replies)
Discussion started by: wrapster
4 Replies
5. Shell Programming and Scripting
Hello experts,
I need some help here..
I've written the following routine to check for existence of files. The routine does the following. It will look for a compressed ( .Z ) file and if it exists, then it will uncompress it, if it is already uncompressed, then it will just diplay a message... (9 Replies)
Discussion started by: kamathg
9 Replies
6. Shell Programming and Scripting
Hi,
I use awk but not as a programming language. Just generally in piplelines to split things out by fields.
I am trying to accomplish this one thing that I think a short awk routine would do great for, but can't figure it out.
Lets say I have a file that contains database columns. The file... (25 Replies)
Discussion started by: fwellers
25 Replies
7. Shell Programming and Scripting
Have a textfile (regular updated) with informations about datafiles .
Each line is describing a datafile. Now I am trying to delete several specific lines in this textfile, which are defined before in a kind of removal list.
Can not find the mistake I have done in the script because in the... (5 Replies)
Discussion started by: jurgen
5 Replies
8. How to Post in the The UNIX and Linux Forums
Hi All,
Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries.
example:
Parent is :
----------
dn: email=yogesh.kumar@wipro.com, o=wipro, o=in
child is:
----------
dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies
9. Shell Programming and Scripting
I am am one of these people that it isn't good enough just to say, "Here, try this...". it is important for me to understand how and why something works (or doesn't work.)
All that being said, I am trying to parse out a command that we use that was handed down to me by someone I can no longer... (3 Replies)
Discussion started by: he204035
3 Replies
10. Shell Programming and Scripting
I have the input file like this.
Input file: 12.txt
1) There are one or more than one <tr> tags in same line.
2) Some tr tags may have one <td> or more tna one <td> tags within it.
3) Few <td> tags having "<td> </td>". Few having more than one " " entry in it.
<tr> some td... (4 Replies)
Discussion started by: thomasraj87
4 Replies
WR(9F) Kernel Functions for Drivers WR(9F)
NAME
WR, wr - get pointer to the write queue for this module or driver
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
queue_t *WR(queue_t *q);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to the read queue whose write queue is to be returned.
DESCRIPTION
The WR() function accepts a read queue pointer as an argument and returns a pointer to the write queue of the same module.
CAUTION: Make sure the argument to this function is a pointer to a read queue. WR() will not check for queue type, and a system panic could
result if the pointer is not to a read queue.
RETURN VALUES
The pointer to the write queue.
CONTEXT
WR() can be called from user or interrupt context.
EXAMPLES
Example 1: Using WR()
In a STREAMS close(9E) routine, the driver or module is passed a pointer to the read queue. These usually are set to the address of the
module-specific data structure for the minor device.
1 xxxclose(q, flag)
2 queue_t *q;
3 int flag;
4 {
5 q->q_ptr = NULL;
6 WR(q)->q_ptr = NULL;
. . .
7 }
SEE ALSO
close(9E), OTHERQ(9F), RD(9F)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.10 15 Nov 1991 WR(9F)