日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做Operating Systems 、代寫C++程序語言
代做Operating Systems 、代寫C++程序語言

時間:2025-02-15  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Operating Systems - 

New York University

Tandon School of Engineering

Department of Computer Science and Engineering

Introduction to Operating Systems

Spring 2025


Assignment 3

(10 points)


Develop a simple Linux kernel module that runs on your virtual machine. The only functionality required of your

module is to be able to load and unload, printing a debug message while doing so.

When a Linux kernel module is loaded, it invokes an init function, and when it is removed (or unloaded), it

invokes an exit function.

A) (0 points) Read chapter 2 of the freely available O’Reilly book “Linux Device Drivers, 3

rd

Edition”

(https://lwn.net/Kernel/LDD3/), in particular p.16, as well as your text book p.96 to get you started. Note that

even though the LDD3 book is written for kernel version 2.6, most mechanisms are applicable with minor or

no changes. The relevant example code is copied below as a starting point.

#include

#include

MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(void)

{

printk(KERN_ALERT "Hello, world\n");

return 0;

}

static void hello_exit(void)

{

printk(KERN_ALERT "Goodbye, cruel world\n");

}

module_init(hello_init);

module_exit(hello_exit);

The hello_init() function is invoked when you insert your module (using the insmod shell command),

whereas the hello_exit() is called when you unload your module (using the rmmod shell command).

B) (0 points) Read the description of the global kernel variable jiffies and the macro HZ in the O’Reilly book

(search in the searchable pdf). Then read about the ktime_get_boottime() routine in

https://www.kernel.org/doc/html/latest/core-api/timekeeping.html


C) (0 points) You may need to install the kernel headers if not already installed. Type:


sudo apt-get install linux-headers-$(uname -r)


D) (10 points) Modify the c code given above (which becomes your lab3.c) such that:

1) The init function prints the tick time in milliseconds (i.e. the timer interval, as we defined it in weeks 1/2)

after the hello message.

The init function shall also save the value of jiffies and the current time.

Operating Systems - Prof. Omar Mansour

2) The exit function prints a goodbye message and the time in milliseconds between the insertion and

removal of the module i.e. between init and exit functions) using two different methods:

a. Using the difference in the value of jiffies from inserting the module to removing the module.

b. Using the time difference obtained by reading the timer (Hint: use ktime_get_boottime().

You shall use the Makefile provided with the assignment (In some cases, you may need to slightly modify the

Makefile provided to suit your setup). You should place it in the same directory as your .c file (lab3.c)

Hints:

E) Your module should use printk() to print messages. You will use this print facility to also debug your

code if needed ( ). More information may be found on https://www.kernel.org/doc/html/latest/core-

api/printk-basics.html

F) Use dmesg shell command to view messages printed by printk(), e.g. type:

dmesg

You may clear the log using:

dmesg -C

What to submit to gradescope:

Please submit the following files individually:

1) Source file(s) with appropriate comments.

The naming should be similar to “lab#_$.c” (# is replaced with the assignment number and $ with the

question number within the assignment, e.g. lab4_b.c, for lab 4, question b OR lab5_1a for lab 5, question

1a).

2) A single pdf file (for images + report/answers to questions), named “lab#.pdf” (# is replaced by the

assignment number), containing:

 Screen shot(s) of your terminal window showing the current directory, the command used to

compile your program, the command used to run your program and the output of your program.

3) Your Makefile, if any. This is applicable only to kernel modules.


RULES:

 You shall use kernel version 4.x.x or above. You shall not use kernel version 3.x.x.

 You may consult with other students about GENERAL concepts or methods but copying code (or code

fragments) or algorithms is NOT ALLOWED and is considered cheating (whether copied form other

students, the internet or any other source).

 If you are having trouble, please ask your teaching assistant for help.

 You must submit your assignment prior to the deadline.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當前頁
  • 上一篇:代做COP 3402、代寫Python/c++語言程序
  • 下一篇:代寫COMP S311、代做Java編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美精品久久久久久久久久| 亚洲夫妻自拍| 亚洲国产成人porn| 亚洲综合色网站| 国产亚洲精品v| 欧美寡妇偷汉性猛交| 国产欧美一区二区视频| 国产精品国内视频| 欧美精品一区三区在线观看| 欧美黄色精品| 免费成人高清| 洋洋av久久久久久久一区| 国产日韩专区在线| 亚洲素人一区二区| 国内精品久久久久久影视8| 亚洲久久一区| 欧美视频日韩| 国产精品欧美风情| 在线播放国产一区中文字幕剧情欧美| 亚洲国产精品成人综合色在线婷婷| 亚洲欧美中文另类| 国产精品久久久久影院亚瑟| 亚洲校园激情| 欧美日韩综合| 久久女同精品一区二区| 亚洲国产精品一区二区第四页av| 欧美午夜大胆人体| 午夜精品一区二区三区在线视| 午夜精品99久久免费| 国产精品v欧美精品v日韩| 亚洲女性喷水在线观看一区| 亚洲国产国产亚洲一二三| 亚洲视频欧美视频| 欧美日韩国产成人| 亚洲美女视频在线免费观看| 欧美日本乱大交xxxxx| 欧美mv日韩mv国产网站| 久久久久**毛片大全| 国产精品实拍| 亚洲精品一区在线观看| 久久偷看各类wc女厕嘘嘘偷窃| 亚洲美女福利视频网站| 在线国产精品播放| 亚洲国产成人精品久久久国产成人一区| 亚洲主播在线观看| 影音国产精品| 一本色道久久88综合亚洲精品ⅰ| 国产精品视频免费| 久久亚洲精品中文字幕冲田杏梨| 欧美三级欧美一级| 亚洲三级电影在线观看| 午夜精品久久久久久99热软件| 美女视频一区免费观看| 欧美国产成人在线| 欧美视频一区二区三区四区| 欧美人成在线视频| 欧美日韩系列| 国产精品青草久久久久福利99| 国产农村妇女精品一二区| 国产欧美午夜| 欧美精品v日韩精品v国产精品| 亚洲性xxxx| 亚洲精品网站在线播放gif| 国产一区久久| 亚洲国产99| 久久久久久成人| 亚洲综合清纯丝袜自拍| 能在线观看的日韩av| 国产噜噜噜噜噜久久久久久久久| 国产精品美女久久久久aⅴ国产馆| 国产精品永久免费在线| 99re热这里只有精品免费视频| 国产精品大片wwwwww| 国产日韩欧美在线视频观看| 亚洲另类黄色| 亚洲高清不卡在线| 在线免费日韩片| 在线视频一区二区| 国产伦一区二区三区色一情| 欧美成人精精品一区二区频| 最近看过的日韩成人| 永久免费精品影视网站| 在线亚洲+欧美+日本专区| 亚洲日本aⅴ片在线观看香蕉| 欲色影视综合吧| 亚洲一二三区在线观看| 国产欧美日本一区视频| 亚洲一二三区在线观看| 亚洲福利视频三区| 亚洲乱码国产乱码精品精天堂| 亚洲综合电影| 日韩一级免费观看| 久久一日本道色综合久久| 久久riav二区三区| 午夜精品视频一区| 久久爱www.| 一区二区亚洲精品国产| 亚洲欧美日韩中文播放| 国产精品私拍pans大尺度在线| 国产精品男gay被猛男狂揉视频| 久久久久久国产精品mv| 亚洲免费av片| 亚洲国产精品传媒在线观看| 欧美视频精品在线观看| 欧美成人在线免费观看| 亚洲一区精品在线| 欧美精品免费在线观看| 老司机成人网| 国产精品自在在线| 99精品国产在热久久下载| 一区二区三区精品国产| 亚洲少妇最新在线视频| 国产精品爽爽ⅴa在线观看| 欧美日韩国产首页| 亚洲影院在线观看| 久久综合九色综合欧美就去吻| 久久综合影视| 久久国产精品99久久久久久老狼| 亚洲美女黄色片| 欧美亚洲不卡| 亚洲激情第一页| 欧美三级在线播放| 国产精品亚洲激情| 欧美在线观看一区二区三区| 免费国产自线拍一欧美视频| 久久久久国色av免费看影院| 欧美成人一区二区三区片免费| 欧美大片第1页| 国产精品久久午夜夜伦鲁鲁| 欧美日韩一区在线观看视频| 欧美天堂亚洲电影院在线观看| 亚洲国产婷婷| 亚洲自拍偷拍色片视频| 欧美色图首页| 国产欧美日韩综合| 亚洲一区欧美一区| 欧美人与禽猛交乱配视频| 国产日韩欧美| 国产农村妇女毛片精品久久麻豆| 欧美小视频在线观看| 在线播放国产一区中文字幕剧情欧美| 国产精品视频你懂的| 久久久av毛片精品| 国产日韩欧美在线播放不卡| 欧美性猛交一区二区三区精品| 在线免费观看视频一区| 亚洲三级电影在线观看| 久久免费偷拍视频| 国产精品av免费在线观看| 亚洲黄页视频免费观看| 亚洲电影激情视频网站| 亚洲一区二区三区免费观看| 久久大综合网| 久久国产婷婷国产香蕉| 国产在线精品成人一区二区三区| 国产一区二区丝袜高跟鞋图片| 久久精品免费播放| 亚洲国产精品久久久| 亚洲色诱最新| 亚洲视频播放| 91久久精品一区二区三区| 亚洲一二三区在线观看| 欧美日韩一区二区精品| 国产日韩欧美精品综合|