国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    美女av一区二区三区| 国产欧美精品在线播放| 欧美精品成人网| 99超碰麻豆| 久久不射电影网| 亚洲 国产 日韩 综合一区| 国产资源第一页| 久久久精品视频成人| 日本欧美色综合网站免费| 99www免费人成精品| 中文字幕欧美日韩一区二区| 黄色一级片在线看| 久久久国产成人精品| 日本少妇高潮喷水视频| 91精品国产91久久久久久| 一区二区精品视频| 国产精品亚洲二区在线观看| 国产aⅴ夜夜欢一区二区三区| 麻豆中文字幕在线观看| 久久精品视频在线观看| 日本免费高清不卡| 99精品一区二区三区的区别| 欧美激情一区二区三级高清视频 | 免费久久久久久| 精品国产依人香蕉在线精品| 日韩美女视频中文字幕| 日韩视频免费在线观看| 欧美少妇一区| 久久精品在线视频| 麻豆av一区| 精品久久久久av| 国产麻豆乱码精品一区二区三区| 国产精品久久婷婷六月丁香| 欧美日韩国产精品一卡| 国产精品天天av精麻传媒| 国内精品一区二区| 精品国产免费av| 成人黄动漫网站免费| 一区二区精品在线| 国产精品久久久久久久美男| 精品亚洲欧美日韩| 亚洲午夜激情| 国产精品国产自产拍高清av水多 | 欧美人与物videos| 国产欧美精品一区二区三区| 中文字幕一区二区三区四区五区人| 国产精品久久久久久av| 精品日本一区二区三区在线观看 | 激情成人开心网| 国产精品一区二区免费在线观看| 亚洲最大福利视频网| 久久久精品国产一区二区三区| 九九久久综合网站| 国产免费成人在线| 久久久影院一区二区三区| 久久久久久国产| 美女精品久久久| 国产精品入口福利| 久久国产精品偷| 中文字幕中文字幕在线中一区高清| 国产精品福利观看| 国产日韩av网站| 色与欲影视天天看综合网| 国产午夜伦鲁鲁| 欧美精品久久久久a| 国产一区玩具在线观看| 久久国产成人精品国产成人亚洲 | 7777奇米亚洲综合久久| 久久精品99久久香蕉国产色戒| 国产精品美女午夜av| 国产精品国语对白| 久久香蕉国产线看观看网| 秋霞在线一区二区| 成人精品一区二区三区电影黑人| 久久精品成人欧美大片| 欧美一级片免费观看| 97精品免费视频| 91九色国产视频| 国产精品久久久久久亚洲调教| 一本色道久久88亚洲精品综合| 久久人人爽人人爽爽久久| 北条麻妃一区二区三区中文字幕| 久久久久久久久久久福利| 国产精品二区三区四区| 日本a级片电影一区二区| 国产一区在线播放| 久久av一区二区三区亚洲| 一级日韩一区在线观看| 色大师av一区二区三区| 91国产高清在线| 精品国产区在线| 91九色丨porny丨国产jk| 日韩中文字幕av在线| 国产不卡在线观看| 国产视频九色蝌蚪| 欧美一级黄色网| 国产99在线免费| www黄色在线| 国产一区在线播放| 午夜一区二区三区| 国产成年人在线观看| 欧美日韩一区二区视频在线| 欧美日韩aaaa| 久久国产精品视频在线观看| 国产天堂在线播放| 热久久免费国产视频| 亚洲综合色av| 国产精品日韩一区二区| 99免费视频观看| 国语自产精品视频在免费| 午夜精品一区二区三区在线播放 | 日韩一中文字幕| 91精品久久久久久久| 男人天堂av片| 日本一区二区三区视频免费看 | 久久亚洲国产成人| 久久久久久久久久亚洲| 99久久综合狠狠综合久久止| 黄页免费在线观看视频| 日av中文字幕| 亚洲精品一区二区毛豆| 久久成人精品一区二区三区| 久久av一区二区三区漫画| 国产欧美精品xxxx另类| 极品美女扒开粉嫩小泬| 欧美一级免费看| 亚洲精品成人三区| 一区二区在线不卡| 九九综合九九综合| 久久人人爽爽人人爽人人片av| 91精品国产一区二区三区动漫| 国产欧美在线播放| 国产四区在线观看| 免费国产a级片| 欧美成人精品欧美一级乱| 日韩久久在线| 日韩精品欧美专区| 日韩资源av在线| 午夜精品美女自拍福到在线| 亚洲欧美日韩国产成人综合一二三区 | 午夜精品www| 亚洲欧美国产精品桃花| 在线国产99| 一区二区三区在线观看www| 亚洲欧美日韩在线综合| 无码人妻aⅴ一区二区三区日本| 亚洲精品一区二| 无码少妇一区二区三区芒果| 亚洲色图都市激情| 日韩尤物视频| 中文字幕日韩一区二区三区| 亚洲av综合色区| 日韩一级特黄毛片| 亚洲精品国产精品久久| 亚洲v日韩v欧美v综合| 日韩av日韩在线观看| 亚洲最大福利视频网站| 亚洲精品日韩成人| 日本一级淫片演员| 色乱码一区二区三在线看| 日本精品久久久久中文字幕| 日韩伦理一区二区三区av在线| 日本在线观看一区二区| 欧美精品一区在线发布| 精品一区二区三区免费毛片| 激情深爱综合网| 国产日本欧美在线观看| 国产一级做a爰片久久毛片男| 91免费看蜜桃| 国产xxxxx视频| 国产精品无码专区在线观看| 不卡av在线网站| 亚洲三级一区| 亚洲一区二区三区四区视频| 欧美一区深夜视频| 久久久久久国产精品美女| 午夜免费电影一区在线观看| 日本最新高清不卡中文字幕| 欧美在线视频免费| 国产欧美精品日韩精品| 久久久性生活视频| 久久久精品久久久| 欧美激情伊人电影| 日本黄网站免费| 免费一级特黄特色毛片久久看| 国产精品主播视频| 久久精品美女| 欧美日韩高清区| 热久久精品免费视频| 国产伦精品一区二区三区精品视频| 国产精品333| 国产精品裸体一区二区三区| 亚洲精品蜜桃久久久久久| 欧美一二三不卡| 国产亚洲综合视频| 91久久伊人青青碰碰婷婷| 久久久久www| 亚洲精品视频一区二区三区 | 欧美成人精品欧美一级乱| 国产精品亚洲一区二区三区|