diff options
Diffstat (limited to 'usr/src/uts/common/io/pckt.c')
| -rw-r--r-- | usr/src/uts/common/io/pckt.c | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/usr/src/uts/common/io/pckt.c b/usr/src/uts/common/io/pckt.c index 3dcb518228..410bd31e3b 100644 --- a/usr/src/uts/common/io/pckt.c +++ b/usr/src/uts/common/io/pckt.c @@ -25,7 +25,7 @@ */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ +/* All Rights Reserved */ /* @@ -97,9 +97,9 @@ _info(struct modinfo *modinfop) static int pcktopen(queue_t *, dev_t *, int, int, cred_t *); static int pcktclose(queue_t *, int, cred_t *); -static void pcktrput(queue_t *, mblk_t *); -static void pcktrsrv(queue_t *); -static void pcktwput(queue_t *, mblk_t *); +static int pcktrput(queue_t *, mblk_t *); +static int pcktrsrv(queue_t *); +static int pcktwput(queue_t *, mblk_t *); static mblk_t *add_ctl_info(queue_t *, mblk_t *); static void add_ctl_wkup(void *); @@ -142,8 +142,8 @@ static struct module_info pcktoinfo = { }; static struct qinit pcktrinit = { - (int (*)())pcktrput, - (int (*)())pcktrsrv, + pcktrput, + pcktrsrv, pcktopen, pcktclose, NULL, @@ -152,7 +152,7 @@ static struct qinit pcktrinit = { }; static struct qinit pcktwinit = { - (int (*)())pcktwput, + pcktwput, NULL, NULL, NULL, @@ -311,7 +311,7 @@ pcktclose( * This is called from the module or * driver downstream. */ -static void +static int pcktrput( queue_t *q, /* Pointer to the read queue */ mblk_t *mp) /* Pointer to the current message block */ @@ -406,6 +406,7 @@ prefix_head: putnext(q, mp); break; } + return (0); } /* @@ -416,7 +417,7 @@ prefix_head: * The function will attempt to get the messages off the queue and * process them. */ -static void +static int pcktrsrv(queue_t *q) { mblk_t *mp; @@ -435,7 +436,7 @@ pcktrsrv(queue_t *q) if (!datamsg(mp->b_datap->db_type)) noenable(q); (void) putbq(q, mp); - return; + return (0); } /* @@ -460,7 +461,7 @@ pcktrsrv(queue_t *q) /* * Running into memory or flow ctl problems. */ - return; + return (0); } /* FALL THROUGH */ @@ -469,6 +470,7 @@ pcktrsrv(queue_t *q) break; } } + return (0); } /* @@ -476,12 +478,13 @@ pcktrsrv(queue_t *q) * All messages are send downstream unchanged */ -static void +static int pcktwput( queue_t *q, /* Pointer to the read queue */ mblk_t *mp) /* Pointer to current message block */ { putnext(q, mp); + return (0); } #ifdef _MULTI_DATAMODEL @@ -497,8 +500,7 @@ pcktwput( static mblk_t * pckt_reallocb( queue_t *q, /* Pointer to the read queue */ - mblk_t *mp /* Pointer to the message block to be changed */ -) + mblk_t *mp) /* Pointer to the message block to be changed */ { mblk_t *nmp; @@ -539,7 +541,7 @@ pckt_reallocb( /* * add_ctl_info: add message control information to in coming - * message. + * message. */ static mblk_t * add_ctl_info( @@ -613,15 +615,15 @@ add_ctl_info( * from <sys/stream.h>. */ struct iocblk32 { - int32_t ioc_cmd; + int32_t ioc_cmd; caddr32_t ioc_cr; uint32_t ioc_id; - int32_t ioc_count; - int32_t ioc_error; - int32_t ioc_rval; - int32_t ioc_fill1; + int32_t ioc_count; + int32_t ioc_error; + int32_t ioc_rval; + int32_t ioc_fill1; uint32_t ioc_flag; - int32_t ioc_filler[2]; + int32_t ioc_filler[2]; } niocblk_32; struct iocblk *iocblk_64; |
