Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

min(9f) [ultrix man page]

min(9F) 						   Kernel Functions for Drivers 						   min(9F)

NAME
min - return the lesser of two integers SYNOPSIS
#include <sys/ddi.h> int min(int int1, int int2); INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). PARAMETERS
int1 The first integer. int2 The second integer. DESCRIPTION
min() compares two signed integers and returns the lesser of the two. RETURN VALUES
The lesser of the two integers. CONTEXT
min() can be called from user or interrupt context. SEE ALSO
max(9F) Writing Device Drivers SunOS 5.10 11 Apr 1991 min(9F)

Check Out this Related Man Page

OTHERQ(9F)						   Kernel Functions for Drivers 						OTHERQ(9F)

NAME
OTHERQ, otherq - get pointer to queue's partner queue SYNOPSIS
#include <sys/stream.h> #include <sys/ddi.h> queue_t *OTHERQ(queue_t *q); INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). PARAMETERS
q Pointer to the queue. DESCRIPTION
The OTHERQ() function returns a pointer to the other of the two queue structures that make up a STREAMS module or driver. If q points to the read queue the write queue will be returned, and vice versa. RETURN VALUES
OTHERQ() returns a pointer to a queue's partner. CONTEXT
OTHERQ() can be called from user or interrupt context. EXAMPLES
Example 1: Setting Queues This routine sets the minimum packet size, the maximum packet size, the high water mark, and the low water mark for the read and write queues of a given module or driver. It is passed either one of the queues. This could be used if a module or driver wished to update its queue parameters dynamically. 1 void 2 set_q_params(q, min, max, hi, lo) 3 queue_t *q; 4 short min; 5 short max; 6 ushort_t hi; 7 ushort_t lo; 8 { 9 q->q_minpsz = min; 10 q->q_maxpsz = max; 11 q->q_hiwat = hi; 12 q->q_lowat = lo; 13 OTHERQ(q)->q_minpsz = min; 14 OTHERQ(q)->q_maxpsz = max; 15 OTHERQ(q)->q_hiwat = hi; 16 OTHERQ(q)->q_lowat = lo; 17 } SEE ALSO
Writing Device Drivers STREAMS Programming Guide SunOS 5.10 11 Apr 1991 OTHERQ(9F)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Information about Unix System Administration

I'm a newbie so I'm not sure if I'm posting this in the right section... if I didn't, please forgive me :) I've been looking all over the web for information on system administration. I'd like to become a Unix System Administrator but I want to find some more info about the job. Can someone please... (54 Replies)
Discussion started by: hpicracing
54 Replies

2. What is on Your Mind?

What do you do for a living?

(107 Replies)
Discussion started by: ilikecows
107 Replies