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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

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

          9000px;">

                91网址在线看| 麻豆精品一区二区三区| 国产白丝网站精品污在线入口| 日韩免费视频一区二区| 天天色图综合网| 欧美另类一区二区三区| 日韩av中文字幕一区二区三区| 51精品国自产在线| 欧美96一区二区免费视频| 日韩一级黄色大片| 国产一区二三区| 欧美精彩视频一区二区三区| www.欧美日韩| 亚洲黄色av一区| 国产日韩欧美制服另类| 国产清纯美女被跳蛋高潮一区二区久久w | 国产成人免费av在线| 精品无人码麻豆乱码1区2区| 欧美大白屁股肥臀xxxxxx| 日韩一区二区免费电影| 国产视频一区不卡| 一二三四区精品视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 日韩成人dvd| 91麻豆免费在线观看| 日韩午夜av电影| 亚洲综合精品久久| 蜜臀av性久久久久蜜臀aⅴ流畅| 狠狠色丁香久久婷婷综合_中 | 日韩精品一区二区三区在线| 亚洲欧美中日韩| 国产在线播放一区三区四| 91久久精品日日躁夜夜躁欧美| 欧美一区二区在线观看| 亚洲一区二区三区视频在线| 国产.欧美.日韩| 亚洲视频一区在线观看| 99精品一区二区| 亚洲精品日韩一| 波多野结衣在线aⅴ中文字幕不卡| 精品动漫一区二区三区在线观看| 日韩影视精彩在线| 337p日本欧洲亚洲大胆精品 | 亚洲视频资源在线| 91年精品国产| 亚洲成人精品一区二区| 日本道色综合久久| 五月婷婷激情综合| 久久久久久久久久久电影| 成人av午夜影院| 亚洲综合色噜噜狠狠| 欧美日韩视频在线一区二区| 国内成+人亚洲+欧美+综合在线| 欧美va亚洲va在线观看蝴蝶网| 国产一区二区三区四区在线观看| 精品国产免费视频| 欧美日韩免费视频| 国产成人精品aa毛片| 五月婷婷欧美视频| 日本一区二区久久| 日韩免费视频一区二区| 在线观看日韩电影| 国产一区二区久久| 视频一区视频二区中文字幕| 国产三级精品三级在线专区| 在线观看91视频| 色婷婷综合久久久| 成人av电影在线| 国产成人av网站| 首页欧美精品中文字幕| 亚洲女女做受ⅹxx高潮| 国产精品免费网站在线观看| 亚洲一区二区三区自拍| 久久女同性恋中文字幕| 欧美剧情片在线观看| 91福利资源站| 欧美精品一区二| 制服丝袜日韩国产| 日韩欧美一区二区不卡| 欧美精品丝袜中出| 在线视频中文字幕一区二区| 欧美主播一区二区三区美女| 9人人澡人人爽人人精品| 国产成人午夜精品影院观看视频| 青青草精品视频| 另类小说图片综合网| 偷拍一区二区三区| 青青草一区二区三区| 日本欧洲一区二区| 男女性色大片免费观看一区二区| 日韩成人伦理电影在线观看| 精品亚洲成a人| 国产成人亚洲综合a∨婷婷| 成人黄色国产精品网站大全在线免费观看| 一区二区三区不卡在线观看| 亚洲视频在线一区二区| 香蕉影视欧美成人| 成人综合婷婷国产精品久久蜜臀| 国产成人日日夜夜| 97se亚洲国产综合自在线| 91成人在线免费观看| 欧美日韩一区国产| 国产精品久线在线观看| 首页国产丝袜综合| 欧洲精品在线观看| 久久精品欧美一区二区三区不卡| 一区二区免费在线| 99久久99久久久精品齐齐| 欧美在线小视频| 国产精品久久久久久久浪潮网站 | 成人aa视频在线观看| 欧美性猛片xxxx免费看久爱| 国产精品美女久久久久av爽李琼| 激情五月婷婷综合网| 色一情一乱一乱一91av| 国产精品乱码人人做人人爱| 久久精工是国产品牌吗| 4hu四虎永久在线影院成人| 亚洲午夜免费电影| 日本韩国欧美在线| 五月综合激情婷婷六月色窝| 色乱码一区二区三区88| 国产亚洲欧美日韩俺去了| 日本中文一区二区三区| 欧美一区二区在线视频| 日本aⅴ免费视频一区二区三区| 一本到不卡免费一区二区| 中文字幕色av一区二区三区| 色94色欧美sute亚洲线路一久| √…a在线天堂一区| 欧美亚洲国产怡红院影院| 午夜精品福利久久久| 日韩一区二区影院| 国产在线视频精品一区| **网站欧美大片在线观看| 欧美伊人久久大香线蕉综合69| 亚洲va国产va欧美va观看| 91精品国产欧美一区二区成人| 国内欧美视频一区二区| 亚洲已满18点击进入久久| 久久久久久日产精品| 69堂亚洲精品首页| av一本久道久久综合久久鬼色| 日日摸夜夜添夜夜添国产精品| 久久久亚洲午夜电影| 精品日韩欧美在线| 91精品国产综合久久久久| 精品综合免费视频观看| 亚洲电影一级片| 日韩黄色免费网站| 亚洲高清免费视频| 亚洲一区二区av电影| 中文字幕一区不卡| 国产精品视频免费| 中文字幕在线视频一区| 日韩一区二区免费高清| 欧美一区二区三区成人| 在线一区二区三区四区| 色综合久久久久综合| 在线日韩av片| 911精品产国品一二三产区| 欧美精品在线观看播放| 日韩色在线观看| 欧美sm美女调教| 久久综合精品国产一区二区三区 | 国产一二精品视频| 大尺度一区二区| 在线一区二区观看| 7777精品伊人久久久大香线蕉的| 欧美日韩国产精品成人| 精品视频一区三区九区| 精品福利一区二区三区免费视频| 亚洲精品一区二区三区在线观看| 久久精品免视看| 一区二区三区不卡视频在线观看 | 美女在线观看视频一区二区| 国产精品一区二区三区99| 欧美午夜寂寞影院| 欧美精品一区视频| 蜜臀99久久精品久久久久久软件| 成人动漫一区二区在线| 91精品国产91热久久久做人人 | 天堂成人免费av电影一区| 精品一区二区三区不卡| 在线影院国内精品| 国产精品久久看| 六月丁香综合在线视频| 国产成人精品亚洲午夜麻豆| 一本大道久久a久久精二百| 欧美一区二区视频在线观看| 自拍偷拍亚洲激情| 不卡一区在线观看| 国产色产综合色产在线视频| 国模少妇一区二区三区| 欧美久久久久久蜜桃| 成人欧美一区二区三区黑人麻豆 | 久久久久久免费| 久久99精品久久久久久国产越南| 色国产精品一区在线观看| 国产精品国产三级国产有无不卡|