OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/sua/sua_lm.h


File /code/strss7/drivers/sua/sua_lm.h



#ifndef __SUA_LM_H__
#define __SUA_LM_H__

/*
 *  =========================================================================
 *
 *  SUA --> LM Upstream Primitives
 *
 *  =========================================================================
 */

/*
 *  LM_LINK_IND
 *  -------------------------------------------------------------------------
 *  All of the local management function associated with lower multiplexor
 *  streams are performed by SUA Layer Management.  This relieves SUA from the
 *  knowledge of the implementation details of various lower layer providers.
 *  All local management primitives are passed to and from the SUA Layer
 *  Manager in LM_LINK_IND and LM_EVENT_REQ primitives.  This function
 *  performs the details:
 */
static int m_link_ind(queue_t * q, mblk_t * dp)
{
	mblk_t *mp;
	lm_link_ind_t *p;
	pp_t *pp = (pp_t *) q->q_ptr;
	if ((mp = allocb(sizeof(*p), BPRI_MED))) {
		mp->b_datap->db_type = dp->b_datap->db_type;
		p = (lm_link_ind_t *) mp->b_wptr;
		p->primitive = LM_LINK_IND;
		p->muxid = pp->muxid;
		p->type = pp->type;
		p->mode = pp->mode;
		p->class = pp->class;
		mp->b_wptr += sizeof(*p);
		mp->b_cont = dp;
		pullmsg(mp, -1);
		ua_u_rput(ua_lmq, mp);
		return (0);
	}
	return (-ENOBUFS);
}

#endif				/* __SUA_LM_H__ */


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/sua/sua_lm.h

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: