日韩精品一区二区三区高清_久久国产热这里只有精品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>
        av成人免费| 精品动漫3d一区二区三区免费版| 久久精品人人| 一本色道久久加勒比精品| 国产精品亚洲欧美| 久久福利视频导航| 亚洲品质自拍| 国产精品日韩欧美一区二区三区| 国产精品二区三区四区| 99视频+国产日韩欧美| 亚洲一区二区在线免费观看视频| 亚洲国产一二三| 欧美精品v日韩精品v韩国精品v| 一本色道综合亚洲| 国产精品久久久久久久浪潮网站| 在线观看日韩精品| 欧美日韩激情网| 亚洲美女毛片| 欧美中文日韩| 国产综合在线视频| 日韩写真视频在线观看| 老巨人导航500精品| 免费观看欧美在线视频的网站| 韩国美女久久| 欧美国产日韩一区二区| 一区二区冒白浆视频| 国产精品久久激情| 欧美日韩国产不卡| 国产欧美日韩一区二区三区在线| 麻豆精品网站| 久久永久免费| 你懂的视频欧美| 久久精品视频在线| 日韩视频一区二区三区| 亚洲欧美另类在线| 日韩一区二区高清| 亚洲一区二区三区在线播放| 亚洲精品视频免费观看| 欧美美女bbbb| 久久蜜桃香蕉精品一区二区三区| 久久久爽爽爽美女图片| 国产欧美日韩视频在线观看| 亚洲国产黄色片| 欧美午夜精品久久久| 久久伊伊香蕉| 免费看黄裸体一级大秀欧美| 国产一区二区三区最好精华液| 欧美高清视频一区二区| 久久久国产精彩视频美女艺术照福利| 国产婷婷色综合av蜜臀av| 欧美日韩国产精品专区| 亚洲一区二区日本| 久久av一区二区三区| 在线观看亚洲a| 欧美一区激情| 国产日韩欧美黄色| 国产精品久久久久久久久免费桃花| 欧美国产视频一区二区| 午夜在线观看欧美| 日韩视频中文字幕| 亚洲专区一二三| 午夜日韩激情| 国产精品九色蝌蚪自拍| 亚洲国产精品久久人人爱蜜臀| 免费在线观看成人av| 久久精品国产精品亚洲综合| 亚洲尤物在线| 久久婷婷色综合| 午夜国产不卡在线观看视频| 韩日精品视频| 一本大道av伊人久久综合| 欧美超级免费视 在线| 免费成人av资源网| 99综合视频| 国产精品日韩欧美一区二区三区| 永久免费精品影视网站| 亚洲少妇诱惑| 亚洲国产乱码最新视频| 伊人久久大香线蕉av超碰演员| 宅男精品导航| 欧美天天视频| 久久久久久综合网天天| 99精品欧美一区二区三区| 蜜桃av综合| 欧美在线精品免播放器视频| 欧美99在线视频观看| 激情小说另类小说亚洲欧美| 午夜亚洲性色福利视频| 欧美黄色一区| 国产亚洲精品7777| 欧美精品18videos性欧美| 亚洲激情二区| 国产精品久久精品日日| 国产欧美一区二区三区视频| 国产精品久久综合| 亚洲天堂av在线免费观看| 免费成人高清视频| 亚洲欧美日韩久久精品| 一区精品久久| 在线观看三级视频欧美| 久久久久88色偷偷免费| 日韩午夜视频在线观看| 国产情侣一区| 久久激情五月丁香伊人| 欧美亚洲尤物久久| 老司机免费视频一区二区三区| 亚洲图片你懂的| 在线亚洲欧美专区二区| 亚洲精品裸体| 国产精品一区二区久久国产| 久久精品国产91精品亚洲| 亚洲电影视频在线| 欧美剧在线观看| 国内精品久久久久久久果冻传媒| 国产精品一区视频网站| 久久九九99| 狠狠入ady亚洲精品| 欧美一区二区黄色| 亚洲欧美变态国产另类| 亚洲精品一区在线观看| 国产欧美日韩精品在线| 欧美午夜激情视频| 久久狠狠一本精品综合网| 亚洲丰满少妇videoshd| 久久精品国产第一区二区三区| 亚洲综合视频在线| 一区二区三区在线高清| 国产精品一卡二| 一本色道综合亚洲| 国产精品一区二区黑丝| 亚洲日本欧美| 国产精品久久亚洲7777| 欧美一区二区三区免费大片| 国产精品影院在线观看| 亚洲国产精品久久91精品| 欧美aaa级| 在线免费高清一区二区三区| 国产日韩精品一区二区| 制服丝袜激情欧洲亚洲| 亚洲大胆视频| 欧美日韩一区精品| 欧美激情va永久在线播放| 欧美精品在线一区二区三区| 久久精品国产一区二区电影| 欧美专区亚洲专区| 欧美一区免费| 欧美日韩系列| 国产在线播精品第三| 欧美国产综合| 亚洲高清在线视频| 欧美日韩午夜在线| 国产精品久久久久秋霞鲁丝| 国产精品盗摄久久久| 欧美在线电影| 免费久久99精品国产自在现线| 狂野欧美一区| 欧美日本一区二区高清播放视频| 欧美14一18处毛片| 亚洲一区二区三区中文字幕| 国产喷白浆一区二区三区| 国产亚洲欧美一区在线观看| 一本色道久久综合亚洲精品高清| 在线看片一区| 亚洲欧美日韩国产综合在线|