国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代做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編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日本成人精品在线| 亚洲伊人成综合成人网| 亚洲五码在线观看视频| 欧美 日韩精品| 久久久最新网址| 亚洲最大福利视频网站| 国产日韩在线一区| 国产精品国产对白熟妇| 日本国产精品视频| 777久久精品一区二区三区无码| 欧美成人一区在线| 黄色小视频大全| 国产精品美女免费视频| 黄色一级片黄色| 国产精品免费成人| 黄色一级视频在线播放| 国产精品无码人妻一区二区在线| 青青久久av北条麻妃海外网| 国产不卡av在线| 日韩免费观看视频| 色av吧综合网| 欧美日韩视频在线一区二区观看视频| 日韩在线欧美在线| 青青草成人免费在线视频| 日韩亚洲综合在线| 黄色大片中文字幕| 精品乱码一区二区三区| 国产乱子伦精品无码专区| 在线视频不卡一区二区| 91久久精品美女| 日韩av日韩在线观看| 日韩有码在线观看| 欧美黄色直播| 久久亚洲精品成人| 成人国产精品一区| 懂色av一区二区三区四区五区| 国产精品91在线| 日韩xxxx视频| 久久草.com| 欧美图片激情小说| 欧美成人性色生活仑片| 国产精品在线看| 亚洲黄色网址在线观看| 久久精品国产精品亚洲色婷婷| 欧美在线播放cccc| 欧美乱人伦中文字幕在线| 99精品视频在线看| 人人干视频在线| 久久综合久中文字幕青草| 成人欧美一区二区| 日本精品免费视频| 欧美精品手机在线| 91精品国产91久久久久久不卡| 欧美一区二区三区免费视| 色av中文字幕一区| 国产日韩精品在线播放| 亚洲 中文字幕 日韩 无码| 久草综合在线观看| 国产系列第一页| 欧美一级中文字幕| 国产精品海角社区在线观看| 91精品国产一区二区三区动漫| 日本丰满少妇黄大片在线观看| 国产精品久久国产| 97国产精品视频| 欧美日韩国产综合在线| 中文字幕色一区二区| 久久久久久久久久福利| 精品少妇人妻av一区二区| 亚洲女人毛片| 国产精品免费在线播放| 91极品视频在线| 免费看成人午夜电影| 无码人妻精品一区二区三区66 | 国产精品一区二区三区免费 | 中文字幕欧美日韩一区二区三区| 久久精品日产第一区二区三区精品版| 黄色www在线观看| 日日碰狠狠丁香久燥| 精品国产一区三区| 日韩一级裸体免费视频| 99福利在线观看| 美女黄毛**国产精品啪啪| 色哺乳xxxxhd奶水米仓惠香| 精品国产乱码久久久久久蜜柚 | 水蜜桃亚洲精品| 色综合久久中文字幕综合网小说| 色婷婷久久av| 国产精品99蜜臀久久不卡二区| 精品少妇在线视频| 日本免费高清一区| 亚洲午夜精品一区二区| 久久亚洲成人精品| 精品国模在线视频| 国产精品12p| 国产奶头好大揉着好爽视频| 欧美日韩国产精品激情在线播放| 欧美一级淫片播放口| 伊人久久青草| 欧美精品免费在线| 国产精品精品久久久| 日韩中文字幕免费看| 国产a级片免费观看| 99免费在线观看视频| 国产色视频一区| 黄色91av| 欧美亚洲另类在线| 日本免费a视频| 午夜啪啪免费视频| 亚洲aaa激情| 亚洲第一综合网站| 亚洲色精品三区二区一区| 色综合天天综合网国产成人网| 国产精品久久久久久一区二区| 国产精品偷伦视频免费观看国产| 久久久久久久久久码影片| 国产成人综合久久| 国产xxx69麻豆国语对白| 国产成人激情小视频| 久久久久久亚洲精品不卡4k岛国| 久久精品视频16| 国产成人av影视| 久久精品欧美| 久久精品国产v日韩v亚洲| 久久精品国产久精国产思思| 久久精品视频亚洲| 久久综合久久88| 国产99视频精品免费视频36| 久久久久久91| 亚洲欧洲精品在线观看| 亚洲精品高清视频| 日日鲁鲁鲁夜夜爽爽狠狠视频97| 天天综合狠狠精品| 日韩精品一区二区三区色欲av| 欧洲精品久久久| 国内精品视频一区二区三区| 国内精品久久国产| 国产一区二区三区播放| 国产老熟妇精品观看| 91美女片黄在线观| 久久免费高清视频| 日韩中文字幕不卡视频| 国产精品久久一区| 欧美精品在线免费| 亚洲色婷婷久久精品av蜜桃| 视频一区二区视频| 日韩免费av一区二区三区| 欧美久久在线| 国产日韩欧美综合| caoporn国产精品免费公开| 91久久精品国产91性色| 国产传媒一区二区| 国产精品久久久久久久久久久久午夜片 | 久久99久久久久久| 精品国产一区二区三区四区在线观看 | 欧美性受xxxx黑人猛交88| 国内精品视频久久| 成人在线一区二区| 久久国产手机看片| 国产精品久久久久av| 亚洲欧美精品| 日韩免费电影一区二区三区| 精品无人区一区二区三区| 99国产在线| 国产成人免费91av在线| 久久天天躁狠狠躁夜夜躁2014| 亚洲五月六月| 青青在线视频免费| 国产免费内射又粗又爽密桃视频| 91国在线精品国内播放| 久久手机精品视频| 亚洲综合日韩中文字幕v在线| 日韩人妻精品无码一区二区三区 | 不卡影院一区二区| 日韩中文字幕在线观看| 久久久久久91| 日韩暖暖在线视频| 国产日韩av网站| 久久偷看各类wc女厕嘘嘘偷窃| 国产精品女主播视频| 亚洲欧美日韩精品综合在线观看 | 久久久久网址| 中文精品无码中文字幕无码专区| 日韩成人在线资源| 国产伦精品一区二区三区高清版| 久久福利电影| 亚洲熟女乱色一区二区三区| 激情小说网站亚洲综合网| 波多野结衣综合网| 国产精品我不卡| 欧美一级片免费播放| 国产又爽又黄的激情精品视频| 国产成人av在线| 亚洲乱码国产一区三区| 国产又大又长又粗又黄| 久久久精品电影| 日本精品久久久久中文字幕| av片在线免费| 精品国产免费久久久久久尖叫| 欧美伊久线香蕉线新在线|