99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          一区二区电影免费在线观看| 久久精品国产69国产精品亚洲 | 亚洲欧美电影院| 午夜精品美女自拍福到在线| 亚洲天堂免费在线观看视频| 在线一区视频| 欧美在线观看视频一区二区三区| 欧美第一黄色网| 伊人久久婷婷| 午夜综合激情| 国产精品入口麻豆原神| 亚洲影院色无极综合| 国产精品嫩草影院av蜜臀| 午夜亚洲伦理| 亚洲精品之草原avav久久| 欧美区一区二区三区| 亚洲一区综合| 亚洲国产成人在线播放| 欧美性猛交99久久久久99按摩| 亚洲欧美bt| 亚洲精品视频免费| 国产欧美三级| 欧美三级电影大全| 久久香蕉精品| 欧美在线高清| 亚洲美女区一区| 久久精品一本久久99精品| 激情综合中文娱乐网| 久久一区中文字幕| 亚洲国产一区二区精品专区| 久久人人97超碰精品888| 亚洲黄一区二区| 欧美日韩精品欧美日韩精品一| 日韩一级网站| 国产精品欧美日韩久久| 久久精品中文字幕一区二区三区| 国产主播一区| 国产精品v欧美精品v日韩| 亚洲欧美变态国产另类| 国产真实乱偷精品视频免| 亚洲免费在线观看视频| 国产精品成人免费视频| 蜜臀久久99精品久久久久久9| 性欧美长视频| 欧美一区二区三区婷婷月色| 亚洲天天影视| 久久一二三四| 国产精品国产馆在线真实露脸| 一二三区精品| 亚洲国产乱码最新视频| 国产精品盗摄久久久| 欧美成人精品影院| 亚洲精品国产视频| 国产精品卡一卡二卡三| 久久资源在线| 久久九九国产精品| 久久激情综合| 小嫩嫩精品导航| 亚洲一区二区三区乱码aⅴ| 亚洲欧洲在线一区| 一区免费视频| 亚洲电影在线看| 亚洲高清资源综合久久精品| 国产一区视频网站| 尤物精品国产第一福利三区| 国产精品麻豆欧美日韩ww| 国产精品久久久久久久久久直播| 欧美日本一道本| 欧美日韩精品免费观看视频完整| 久久亚裔精品欧美| 欧美大学生性色视频| 欧美国产亚洲视频| 国产精品黄色在线观看| 国产日韩欧美视频| 亚洲激情自拍| 亚洲一区二区网站| 亚洲欧美在线高清| 欧美理论在线播放| 国产精品区一区| 一区在线视频| 中文在线不卡视频| 久久综合网络一区二区| 欧美日韩另类丝袜其他| 国产精品综合视频| 亚洲精品亚洲人成人网| 亚洲欧美激情一区二区| 欧美韩日一区二区| 欧美成人午夜剧场免费观看| 国产精品色婷婷| 亚洲精品在线免费观看视频| 亚洲男人的天堂在线| 欧美精品一区二区三区蜜桃| 国产精品亚洲欧美| 亚洲一区二区免费视频| 美女被久久久| 在线精品一区| 蜜桃av噜噜一区| 韩国精品在线观看| 性欧美xxxx大乳国产app| 欧美日韩国产麻豆| 一区二区三区**美女毛片| 久久一本综合频道| 在线日本成人| 欧美va亚洲va国产综合| 亚洲片区在线| 欧美日本不卡视频| 99v久久综合狠狠综合久久| 欧美成人日本| 亚洲一区在线播放| 国产人成精品一区二区三| 久久精品午夜| 亚洲人体一区| 国产精品一区2区| 久久久国产视频91| 亚洲激情一区二区| 欧美日韩精品免费观看视频完整| 9i看片成人免费高清| 欧美日韩亚洲精品内裤| 欧美诱惑福利视频| 在线看一区二区| 欧美三级视频在线观看| 亚洲影院色无极综合| 狠狠久久亚洲欧美| 欧美国产日韩在线| 欧美一区二区视频观看视频| 在线播放不卡| 欧美午夜视频网站| 欧美电影免费观看高清完整版| 一本久道久久综合婷婷鲸鱼| 国产精品一卡二卡| 欧美日韩免费区域视频在线观看| 欧美一区二区三区男人的天堂| 亚洲激情影视| 亚洲高清在线视频| 国产在线视频欧美一区二区三区| 欧美日韩国产美| 欧美电影在线播放| 免费在线观看日韩欧美| 久久精品日韩欧美| 久久天天躁狠狠躁夜夜爽蜜月| 亚洲一区二区视频| 午夜在线一区二区| 欧美一区二区三区在线| 亚洲免费视频一区二区| 亚洲自拍高清| 性做久久久久久久久| 亚洲一区二区三区乱码aⅴ蜜桃女| 欧美人体xx| 国产精品久久91| 国产午夜精品一区二区三区欧美| 国产精品人成在线观看免费| 免费成人小视频| 欧美一级午夜免费电影| 国产欧美精品日韩精品| 午夜在线精品| 亚洲素人在线| 欧美亚洲一区在线| 欧美一区二区视频免费观看| 亚洲综合色激情五月| 国产精品丝袜91| 美日韩丰满少妇在线观看| 99在线精品视频在线观看| 国产免费一区二区三区香蕉精| 欧美一区二区三区免费大片| 亚洲高清三级视频| 国产精品午夜在线| 亚洲狼人综合| 在线视频欧美一区| 激情综合色综合久久综合| 国产欧美一区视频| 亚洲第一伊人| 国产欧美一区二区精品性 | 欧美国产免费| 欧美女主播在线| 久久久综合精品| 欧美电影在线| 国产亚洲欧美aaaa| 91久久极品少妇xxxxⅹ软件| 久久综合久久综合久久综合| 国产精品久久久久av| 一本到12不卡视频在线dvd| 性久久久久久| 欧美国产激情| 国产综合亚洲精品一区二| 国产精品视频免费观看| 久久久久成人精品免费播放动漫| 欧美激情第二页| 日韩午夜激情| 国产精品久久久久久久免费软件 | 亚洲国产精品一区| 欧美+亚洲+精品+三区| 亚洲国产成人av| 欧美黄色一级视频| 亚洲在线视频网站| 亚洲第一黄网| 欧美日韩在线播放三区| 亚洲在线免费观看| 99re66热这里只有精品4| 国产亚洲午夜| 欧美日韩精品高清|