日韩精品一区二区三区高清_久久国产热这里只有精品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編程語言
  • 無相關信息
    合肥生活資訊

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

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

    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>
        亚洲免费观看在线视频| 1769国内精品视频在线播放| 久久九九免费| 欧美日韩一区国产| 欧美成人性生活| 欧美性视频网站| 欧美高清视频www夜色资源网| 伊人狠狠色j香婷婷综合| 91久久国产精品91久久性色| 亚洲第一黄色| 亚洲美女少妇无套啪啪呻吟| 亚洲国产欧美久久| 国产一区 二区 三区一级| 久久久另类综合| 久久久久久久久综合| 欧美日韩八区| 国产麻豆精品视频| 国产一区91| 亚洲伦理在线| 欧美日韩亚洲一区二区三区| 黄色日韩精品| 欧美激情视频给我| 国产日韩综合| 99精品欧美一区二区蜜桃免费| 国产精品人人做人人爽人人添| 欧美日本在线播放| 国产精品私房写真福利视频| 好看的av在线不卡观看| 宅男噜噜噜66一区二区| 欧美日韩一区在线观看视频| 91久久国产综合久久91精品网站| 亚洲香蕉在线观看| 久久国产精品久久精品国产| 亚洲国产精品一区二区第四页av| 亚洲国产成人一区| 欧美电影免费观看高清完整版| 国产视频自拍一区| 欧美成人a视频| 久久亚洲国产精品一区二区| 欧美中文在线免费| 午夜国产精品影院在线观看| 久久久久久网址| 国内精品视频在线播放| 在线成人av网站| 欧美成人精品高清在线播放| 欧美影片第一页| 欧美激情性爽国产精品17p| 午夜精品影院| 免费欧美在线| 国产主播一区| 一区二区三区免费网站| 欧美视频在线观看| 欧美精品久久一区二区| 国产一区二区三区观看| 亚洲永久免费av| 一区二区三区欧美视频| 国产精品美女久久久久久免费| 国产亚洲成精品久久| 欧美精品亚洲精品| 99视频国产精品免费观看| 欧美亚洲网站| 一区二区视频免费在线观看| 国户精品久久久久久久久久久不卡| 国产精品蜜臀在线观看| 黄色日韩在线| 国产一区二区三区高清播放| 国产精品一区二区女厕厕| 久久综合激情| 欧美人与性动交a欧美精品| 久久国产一区二区三区| 欧美一级久久| 1024精品一区二区三区| 国产欧美韩日| 国产亚洲欧洲997久久综合| 国产精品午夜久久| 含羞草久久爱69一区| 日韩亚洲一区二区| 国产日韩专区在线| 亚洲日本va午夜在线影院| 91久久精品日日躁夜夜躁欧美| 亚洲在线网站| 一区二区在线观看视频在线观看| 国产欧美日韩视频一区二区三区| 午夜精品久久久久久| 亚洲免费在线播放| 欧美一区二区视频97| 亚洲国产欧美一区二区三区丁香婷| 国产精品福利网站| 亚洲手机视频| 久久影视三级福利片| 国产亚洲欧美aaaa| 老司机亚洲精品| 亚洲在线观看视频| 亚洲欧洲日夜超级视频| 亚洲五月六月| 欧美11—12娇小xxxx| 亚洲精品久久久久久一区二区| 欧美中文字幕精品| 亚洲高清成人| 狠狠色丁香婷婷综合| 亚洲精品麻豆| 国模一区二区三区| 国产精品亚洲美女av网站| 国产精品夫妻自拍| 国产日韩成人精品| 久久久久成人精品免费播放动漫| 一本色道久久综合亚洲精品不| 欧美成人免费网| 国产亚洲视频在线| 欧美人成在线| 欧美精品一区二区三区高清aⅴ| 国内外成人免费激情在线视频网站| 欧美久久99| 亚洲电影第1页| 欧美午夜激情小视频| 亚洲精品综合久久中文字幕| 亚洲午夜未删减在线观看| 欧美日韩成人综合| 亚洲精品在线观看视频| 国产视频不卡| 亚洲欧美日韩中文播放| 香蕉乱码成人久久天堂爱免费| 欧美无乱码久久久免费午夜一区| 国内外成人在线| 久久精品中文字幕免费mv| 美女免费视频一区| 91久久夜色精品国产九色| 久久综合精品国产一区二区三区| 亚洲香蕉视频| 欧美国产亚洲另类动漫| 午夜精品久久久久久久99热浪潮| 欧美日本国产精品| 亚洲人被黑人高潮完整版| 亚洲三级免费| 一区二区三区我不卡| 国产片一区二区| 国产精品免费aⅴ片在线观看| 麻豆精品在线播放| 久久xxxx精品视频| 久久精品国产亚洲5555| 妖精成人www高清在线观看| 欧美国产大片| 欧美人与性动交a欧美精品| 国产精品拍天天在线| 欧美日韩中文字幕综合视频| 亚洲高清视频的网址| 亚洲欧美成人精品| 亚洲男人的天堂在线aⅴ视频| 国产精品久久久久久久久果冻传媒| 狠狠色综合网站久久久久久久| 在线观看日产精品| 欧美视频中文一区二区三区在线观看| 欧美激情视频在线播放| 久久综合给合| 国产精品进线69影院| 亚洲人成毛片在线播放女女| 亚洲人成人一区二区三区| 久久九九热re6这里有精品| 国产精品亚洲美女av网站| 国产欧美在线看| 激情婷婷欧美| 欧美午夜电影网| 欧美成人资源网| 亚洲欧美日韩电影|