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

          9000px;">

                亚洲最新视频在线播放| 天天做天天摸天天爽国产一区 | 日韩一区二区三区三四区视频在线观看 | 欧美精品九九99久久| 一区二区三区四区亚洲| 欧美日韩免费视频| 人人狠狠综合久久亚洲| 午夜精品久久久| xfplay精品久久| 欧美剧在线免费观看网站| 亚洲午夜视频在线观看| 91精品婷婷国产综合久久性色| 五月婷婷综合在线| 日韩美女一区二区三区四区| 国产精品自在在线| 国产精品久久久久久福利一牛影视| 不卡影院免费观看| 亚洲电影你懂得| www一区二区| 色偷偷久久人人79超碰人人澡| 婷婷久久综合九色国产成人| 亚洲国产精品高清| 日韩三级视频在线观看| 99久久夜色精品国产网站| 奇米一区二区三区av| 中文字幕一区二区在线观看| 欧美一级艳片视频免费观看| 成人小视频在线观看| 日韩成人午夜电影| 亚洲视频 欧洲视频| 欧美不卡在线视频| 欧美日韩亚洲综合一区| 成人一区二区在线观看| 美女视频黄久久| 亚洲一区视频在线观看视频| 久久久精品中文字幕麻豆发布| 欧美性生活一区| 成人午夜在线免费| 经典三级一区二区| 亚洲va国产va欧美va观看| 亚洲人精品午夜| 中文字幕成人在线观看| 26uuu亚洲婷婷狠狠天堂| 欧美体内she精高潮| av在线播放不卡| 国产精品1区2区| 久久99国产精品久久99果冻传媒| 婷婷综合五月天| 亚洲一二三四久久| 成人的网站免费观看| 成人涩涩免费视频| 6080日韩午夜伦伦午夜伦| 99精品视频在线播放观看| 国产激情视频一区二区三区欧美| 日韩av中文在线观看| 亚洲国产日日夜夜| 亚洲综合激情小说| 亚洲一区二区四区蜜桃| 亚洲韩国一区二区三区| 亚洲va欧美va人人爽午夜| 亚洲va欧美va国产va天堂影院| 亚洲mv在线观看| 亚洲成av人片一区二区| 亚洲成a天堂v人片| 日韩极品在线观看| 婷婷久久综合九色综合伊人色| 一区二区久久久| 一区二区三区蜜桃| 午夜视频一区二区三区| 天天免费综合色| 日韩va亚洲va欧美va久久| 久久99久久99| 成人网男人的天堂| 色综合婷婷久久| 欧美日韩中文精品| 欧美一级在线免费| 国产视频911| 一区二区三区四区精品在线视频| 亚洲大片精品永久免费| 日韩极品在线观看| 国产成人自拍高清视频在线免费播放| 成人免费视频国产在线观看| 在线观看www91| 精品少妇一区二区三区视频免付费| 久久女同性恋中文字幕| 一区二区三区在线影院| 麻豆视频观看网址久久| 91香蕉视频黄| 欧美一区二区在线看| 中文字幕第一区| 午夜国产精品一区| 国产精品一品视频| 欧美日韩在线电影| 久久精品一区二区三区四区| 亚洲精品久久久蜜桃| 国产黄色91视频| 欧美日韩在线播放| 日韩一区二区影院| 日韩一区有码在线| 麻豆精品新av中文字幕| av激情成人网| 日韩美女视频一区二区在线观看| 日韩无一区二区| 国产精品一二三四| 97国产精品videossex| 日韩一级视频免费观看在线| 中文字幕第一区综合| 日韩va亚洲va欧美va久久| 99久久婷婷国产综合精品电影 | 亚洲一区二区三区四区在线观看 | 欧美mv和日韩mv国产网站| 亚洲国产中文字幕| 粉嫩av亚洲一区二区图片| 欧美日韩国产一二三| 日韩精品综合一本久道在线视频| 亚洲人成7777| 国产成人三级在线观看| 精品国一区二区三区| 日韩高清在线不卡| 欧美三级一区二区| 一区二区高清免费观看影视大全 | 欧美一区二区播放| 亚洲一区二区精品3399| www.99精品| 国产人伦精品一区二区| 国产一区二区三区蝌蚪| 日韩午夜激情电影| 日本va欧美va精品| 欧美高清性hdvideosex| 亚洲国产你懂的| 色综合天天综合网国产成人综合天 | 一区二区三区美女| 99免费精品在线观看| 国产精品美女久久久久久2018| 国内精品伊人久久久久av影院 | 精品一区二区三区免费播放| 91精品国产综合久久精品性色 | 国产精品久久久久久一区二区三区| 麻豆一区二区三| 久久久影院官网| 国产高清成人在线| 国产精品国产三级国产专播品爱网| 国产成人在线视频播放| 国产视频在线观看一区二区三区| 国产精品综合二区| 中文字幕日本不卡| 欧美日韩国产大片| 精品在线亚洲视频| 欧美国产精品久久| 色88888久久久久久影院按摩 | 懂色av一区二区三区免费看| 中文字幕欧美日韩一区| 成人精品视频一区二区三区 | 亚洲综合av网| 欧美一二区视频| 国产不卡视频一区二区三区| 亚洲欧美另类久久久精品| 欧美色中文字幕| 青青草91视频| 亚洲欧洲一区二区在线播放| 欧美午夜一区二区| 国内久久婷婷综合| 一区二区三区在线免费视频 | 日韩av电影免费观看高清完整版 | thepron国产精品| 偷偷要91色婷婷| 久久久www免费人成精品| 色香蕉成人二区免费| 狂野欧美性猛交blacked| 国产精品免费看片| 91精品国产欧美一区二区18| 粉嫩av一区二区三区在线播放| 亚洲午夜视频在线| 精品国产乱码久久久久久图片| 99re亚洲国产精品| 美女爽到高潮91| 亚洲电影一级片| 久久久av毛片精品| 欧美日韩国产经典色站一区二区三区| 国产精品亚洲成人| 亚洲一二三区在线观看| 国产精品久久久久久久午夜片 | 国产乱码精品一区二区三 | 黄页视频在线91| 精品成人在线观看| 蜜臀精品一区二区三区在线观看 | 精品av综合导航| 免费在线视频一区| 在线观看国产一区二区| 精品精品国产高清一毛片一天堂| 一区二区三区精品视频| 丰满白嫩尤物一区二区| 久久综合av免费| 激情综合网av| 国产日韩一级二级三级| 国产一区福利在线| 欧美激情一二三区| 在线观看免费成人| 精品无码三级在线观看视频| 欧美一级在线观看|