加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代做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仿真分析服務-企業(yè)/產品研發(fā)/客戶要求/設計優(yōu)化
    有限元分析 CAE仿真分析服務-企業(yè)/產品研發(fā)
    急尋熱仿真分析?代做熱仿真服務+熱設計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務+熱設計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現(xiàn)代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現(xiàn)代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    一本一道久久a久久| 中文字幕人成乱码在线观看| 老司机精品视频网站| av亚洲一区| 亚洲区小说区图片区qvod| 在线日韩电影| 91亚洲视频| 久久久久毛片免费观看| 欧美特黄a级高清免费大片a级| 欧美天堂一区二区| 欧美日韩国产一区二区三区不卡| www.久久.com| 在线观看国产精品入口| 伊人精品综合| 亚洲日本天堂| 亚洲精品国产首次亮相| 黄色成人美女网站| 最近在线中文字幕| 欧美体内she精视频在线观看| 日韩av不卡一区二区| 一区二区三区高清视频在线观看| 少妇久久久久| 祥仔av免费一区二区三区四区| 一本不卡影院| 国产精品羞羞答答在线观看| 黄色成人av网站| 久久久久观看| 久久xxxx| 精品国产一区二区三区性色av| 日精品一区二区| 欧美日韩国产在线一区| 三级小说欧洲区亚洲区| 日韩精品一区国产| 国产精品一级在线观看| 免费日韩精品中文字幕视频在线| 精品国产中文字幕第一页| 99精品热视频只有精品10| 国产剧情av在线播放| 99精品国产一区二区三区2021| 欧州一区二区三区| 久久男人av| 日本欧美一区二区| 免费一级片91| 中文字幕一区日韩精品| 亚洲日产av中文字幕| 韩国三级大全久久网站| 国产精品大片| 亚洲久久成人| 一区二区在线| 亚洲一区欧美| av在线视屏| 成人在线国产| 999国产精品视频| 成人免费观看49www在线观看| 99精品国产福利在线观看免费| 日韩欧美专区| 免费看的黄色欧美网站| 好看不卡的中文字幕| 亚洲精品888| 欧美日韩国产高清| 国产午夜久久| 美女91精品| 国产在线精彩视频| 免费成人在线电影| 黄色工厂这里只有精品| 亚洲高清影视| 99国产精品视频免费观看一公开 | 国产精品久久乐| 欧美一区二区三区久久精品| 日本伊人色综合网| 老牛国产精品一区的观看方式| 亚洲综合国产| 中文一区一区三区高中清不卡免费| 超碰在线cao| 亚洲精品伦理| 欧美激情1区2区3区| 亚洲黄页网站| 精品美女视频| 黄色成人91| 久久毛片亚洲| 青青草国产成人av片免费| 国产精品一区二区美女视频免费看| 亚洲高清极品| 国产三级精品三级在线观看国产| 久久在线视频免费观看| 99综合视频| 日韩在线观看电影完整版高清免费悬疑悬疑| 女人香蕉久久**毛片精品| 亚洲中午字幕| 高清av一区| 中文字幕日韩欧美精品高清在线| 婷婷综合成人| 亚洲青青久久| 精品久久免费| 小说区图片区色综合区| 蜜臀av一区二区在线免费观看| 日本肉肉一区| 中文在线日韩| 日本不卡高清| 日韩在线卡一卡二| 欧美成人毛片| 日韩精品一区二区三区中文| 五月婷婷亚洲| 日韩中文视频| 亚洲成aⅴ人片久久青草影院| 久久狠狠婷婷| 中文在线8资源库| 欧美日本在线| 色愁久久久久久| 日韩中文字幕一区二区三区| 美女视频网站黄色亚洲| 中文字幕视频精品一区二区三区| 最新亚洲一区| 日韩福利在线观看| 久久精品免视看国产成人| 激情综合网站| 影音成人av| 亚洲免费福利一区| 亚洲精品a级片| 欧美成人三级| 粉嫩久久久久久久极品| 国产精品99一区二区三| 中文视频一区| jiujiure精品视频播放| 亚洲精品大片| 精品国产一区二区三区av片| 超级白嫩亚洲国产第一| 国产精品一区二区三区四区在线观看| 久久免费大视频| 成人在线黄色| 福利欧美精品在线| 在线天堂新版最新版在线8| 国产一区二区观看| 在线视频日韩| 欧美日韩1区2区3区| 免费观看不卡av| 99在线|亚洲一区二区| 免费成人毛片| 美女呻吟一区| 亚洲精品成a人ⅴ香蕉片| 欧美色综合网| 日韩在线视频精品| 一区二区三区在线免费看| 色一区二区三区四区| 国产欧美日韩| 美国欧美日韩国产在线播放| 欧美影院视频| 蜜臀av一级做a爰片久久| 99热这里有精品| 久久最新视频| 亚洲综合图色| 成人黄色av| 高清日韩欧美| 国产91在线精品| 欧美一区二区三区高清视频| 免费在线日韩av| 伊人成综合网| 精品一区二区三区中文字幕| 巨乳诱惑日韩免费av| 日韩电影一二三区| 另类图片综合电影| jizz性欧美23| 久久精品国产77777蜜臀| 亚洲天堂男人| 不卡一区视频| 中文一区一区三区高中清不卡免费| 97色成人综合网站| 久久国内精品视频| 欧美午夜不卡影院在线观看完整版免费| 日本在线不卡一区| 亚洲一区二区网站| 日韩av二区在线播放| 桃色一区二区| 欧美日韩国产一区二区三区不卡| 国产成人免费av一区二区午夜| 免费不卡在线视频| 91精品国产自产精品男人的天堂| 祥仔av免费一区二区三区四区| 加勒比久久综合| 日韩aaa久久蜜桃av| 97欧美成人| 亚洲一区不卡| 青青一区二区三区| 亚洲人metart人体| 国产自产自拍视频在线观看| 久久婷婷av| 亚洲男人都懂第一日本| 色综合天天色| 亚洲在线视频| 99精品视频在线观看播放| 伊人亚洲精品| 在线观看精品| 国产亚洲永久域名| 欧美日韩导航| 高清久久一区| 婷婷久久免费视频| 日韩影院免费视频| 久久社区一区| 日韩三级av高清片| 国产精品chinese|