分类: 系统运维
2007-06-08 18:21:23
/* acquire the arriving packet */
/* multiple arriving streams are supported. */
pkptr = op_pk_get (op_intrpt_strm ());
/* new packets are stamped to */
/* indicate the packet is waiting for service. */
op_pk_priority_set (pkptr, PK_STATUS_WAITING);
/* attempt to enqueue the packet at tail of subqueue 0 */
if (op_subq_pk_insert (0, pkptr, OPC_QPOS_TAIL) != OPC_QINS_OK)
{
/* the insertion failed (due to a full queue)... */
op_pk_destroy (pkptr);
/* set flag indicating insertion failed... */
insert_ok = 0;
}