flashsim源码阅读7-7笔记

本文详细解析了disksim中的extraq队列操作,包括allocateextra(), addtoextraq(), getfromextraq(), event_copy()等函数,讨论了内联函数inline的作用,并阐述了extraq作为单链表的特性及其在内存管理中的作用。" 104400359,8435160,网络协议分层解析与理解,"['网络协议', '网络分层', 'TCP/IP', 'DNS解析', 'ICMP协议']
摘要由CSDN通过智能技术生成

disksim_simulate_event()代码段继续学习

现给出之前未读完的代码段:

if (curr->type == INTR_EVENT) {
      intr_acknowledge (curr);
    } 
    else if ((curr->type >= IO_MIN_EVENT) && (curr->type <= IO_MAX_EVENT)) {
      io_internal_event ((ioreq_event *)curr);
    } 
    else if ((curr->type >= PF_MIN_EVENT) && (curr->type <= PF_MAX_EVENT)) {
      pf_internal_event(curr);
    }
    else if (curr->type == TIMER_EXPIRED) {
      timer_event *timeout = (timer_event *) curr;
      (*timeout->func) (timeout);
    } 
    else if ((curr->type >= MEMS_MIN_EVENT) 
         && (curr->type <= MEMS_MAX_EVENT)) 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值