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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          另类春色校园亚洲| 欧美在线观看你懂的| 日韩一区二区免费看| 亚洲精品美女91| 一本色道久久综合狠狠躁的推荐| 一本久久综合亚洲鲁鲁| 亚洲一区二区毛片| 久久精品五月婷婷| 欧美91大片| 欧美午夜激情小视频| 国产精品免费一区二区三区在线观看| 国产精品久99| 狠狠色丁香婷婷综合| 亚洲欧洲另类| 亚洲欧美日韩电影| 免费观看国产成人| 国产精品福利在线观看网址| 国精品一区二区| 亚洲国产三级在线| 午夜精品亚洲| 欧美国产日韩在线| 国产日产亚洲精品系列| 亚洲人成在线观看网站高清| 午夜精彩国产免费不卡不顿大片| 久久蜜桃av一区精品变态类天堂| 欧美视频精品在线| 好看的亚洲午夜视频在线| 亚洲免费成人| 久久久久久国产精品mv| 欧美三级电影精品| 影视先锋久久| 先锋资源久久| 欧美日韩国产专区| 亚洲第一中文字幕| 午夜精品剧场| 欧美三级黄美女| 亚洲电影第1页| 欧美一区二区精品在线| 欧美理论片在线观看| 国语自产精品视频在线看抢先版结局| 中文日韩欧美| 欧美激情视频一区二区三区免费| 国产日韩av在线播放| 亚洲一区二区三区在线看| 欧美精品 日韩| 亚洲福利视频三区| 欧美一区二区成人6969| 国产精品a久久久久| 99国产精品一区| 欧美国产先锋| 日韩亚洲精品电影| 久久亚洲精品视频| 国产欧美日韩视频一区二区三区 | 欧美一级片在线播放| 欧美日韩精品在线视频| 亚洲欧美日韩在线一区| 国产精品毛片一区二区三区| 国产亚洲激情在线| 国产伦精品一区二区三区免费| 久久久中精品2020中文| 在线观看成人av| 国产精品久久久久毛片软件| 麻豆视频一区二区| 亚洲婷婷在线| 一区二区视频免费完整版观看| 欧美精品电影在线| 亚洲一区二区四区| 欧美精品偷拍| 在线观看视频一区二区| 久久一区二区三区av| 在线不卡欧美| 欧美多人爱爱视频网站| 亚洲国产视频一区| 欧美日韩中字| 欧美一级网站| 激情欧美一区| 欧美激情精品久久久| 艳女tv在线观看国产一区| 国产精品hd| 久久福利影视| 亚洲日本成人| 国产精品美女一区二区在线观看| 欧美一区二区三区在| 在线播放中文字幕一区| 欧美日韩国产在线看| 午夜亚洲激情| 亚洲第一精品影视| 欧美日韩亚洲成人| 欧美一区二区成人6969| 亚洲国产精品久久久久秋霞不卡| 欧美伦理a级免费电影| 午夜亚洲视频| 日韩午夜在线电影| 国产精品亚洲精品| 欧美顶级艳妇交换群宴| 亚洲女ⅴideoshd黑人| 国产一区日韩二区欧美三区| 欧美激情一区二区三区| 亚洲免费视频一区二区| 亚洲国产日日夜夜| 国产欧美日韩免费| 欧美激情在线| 久久蜜桃香蕉精品一区二区三区| 日韩午夜免费| 亚洲国产99| 国产精品视频在线观看| 欧美精品v日韩精品v国产精品| 亚洲欧美中文日韩在线| 亚洲免费电影在线| 在线免费观看欧美| 国产精品永久在线| 欧美日韩一卡| 欧美成人免费全部观看天天性色| 欧美一区二区三区视频在线观看 | 久久艳片www.17c.com| 亚洲午夜在线视频| 亚洲毛片一区| 永久555www成人免费| 国产伦精品一区二区三区四区免费 | 欧美日韩黄视频| 久久精品女人| 午夜精品久久久久久久蜜桃app| 亚洲精品免费在线播放| 在线免费观看日本欧美| 国产精品xxx在线观看www| 欧美www视频在线观看| 久久久99国产精品免费| 羞羞色国产精品| 午夜精品在线看| 亚洲一区在线看| 亚洲一区亚洲二区| 亚洲视频 欧洲视频| 亚洲视频一区在线观看| 中日韩视频在线观看| 一本色道久久综合亚洲精品婷婷| 亚洲精品你懂的| 亚洲看片免费| 99国产精品视频免费观看一公开| 亚洲精品男同| 一本色道久久综合亚洲精品不卡| 亚洲视频在线一区| 亚洲无限av看| 午夜亚洲一区| 久久九九久精品国产免费直播| 久久国产精品99国产精| 久久精品亚洲精品国产欧美kt∨| 久久不见久久见免费视频1| 久久精品日产第一区二区| 久久天天躁狠狠躁夜夜爽蜜月| 久久综合狠狠| 欧美精品一区二区三区高清aⅴ| 欧美日本中文字幕| 国产精品久久久久av免费| 国产精品最新自拍| 狠狠色狠狠色综合日日91app| 在线欧美影院| 一区二区三区四区国产精品| 亚洲性感美女99在线| 亚洲欧美欧美一区二区三区| 欧美一区久久| 欧美成人免费在线观看| 欧美视频中文一区二区三区在线观看| 国产精品久久久久久模特| 国产一区 二区 三区一级| 亚洲黄色毛片| 亚洲一区中文| 麻豆9191精品国产| 欧美三区美女| 国产午夜久久久久| 91久久视频| 午夜精品成人在线视频| 免费观看在线综合| 国产精品久久久免费| 韩日视频一区| 极品av少妇一区二区| 国产欧美欧美| 在线观看国产一区二区| 99国产精品久久久久老师| 欧美一级黄色录像| 欧美精品在线免费观看| 国产午夜精品在线观看| 亚洲美女在线看| 久久天堂国产精品| 国产精品成人在线观看| 亚洲电影一级黄| 性8sex亚洲区入口| 欧美激情综合五月色丁香| 国产一区二区| 亚洲一区在线播放| 欧美精品国产| 亚洲第一页中文字幕| 欧美一区二区精品久久911| 欧美日韩另类在线| 91久久国产综合久久| 久久都是精品| 国产精品夜夜夜一区二区三区尤| 一道本一区二区| 欧美日韩国产综合久久| 亚洲电影毛片| 久久性色av|