国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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| 久久久久久久国产| 亚洲a∨一区二区三区| 久久av在线看| 精品麻豆av| 色综合久久88色综合天天看泰| 国产精品国产精品国产专区蜜臀ah | 日韩一区二区久久久| 国产高清精品一区二区三区| 久久久视频在线| 国产成人精品免高潮费视频| 久久综合九色综合网站| 国产福利精品在线| 日韩亚洲一区二区| www.国产一区| 国产精品久久久久久久久| 久久综合五月天| 色综合久久久888| 亚洲欧洲精品在线| 日本黄网站色大片免费观看| 欧美一区观看| 国产欧美在线一区| 久久久亚洲精品视频| 日韩中文字幕av| 毛片精品免费在线观看| 亚洲综合自拍一区| 日本国产一区二区三区| 精品欧美日韩| 成人久久久久久| 色偷偷av一区二区三区| 国产精品高清网站| 日韩一区二区三区高清| 日本三日本三级少妇三级66| 欧美亚洲国产视频小说| 国产一级片91| 国产精品97在线| 国产精品免费一区二区三区在线观看| 九色91av视频| 日韩欧美精品在线观看视频| 国产在线精品一区二区三区》| caoporn国产精品免费公开| 久久久久久噜噜噜久久久精品| 国产精品麻豆免费版| 亚洲视频欧美在线| 欧美精品久久久| 97色在线播放视频| 国产精品久久久久影院日本| 亚洲一区尤物| 精品一区二区国产| 国产福利不卡| 国产av第一区| 欧美成人蜜桃| 国产成人亚洲综合青青| 国产精品成人一区二区三区| 日韩在线第三页| 国产日韩欧美在线观看| 久久久久久久久久久人体| 中文字幕在线乱| 精品一区二区视频| www.亚洲免费视频| 日韩av高清| 国产精品亚洲自拍| 色999日韩欧美国产| 亚洲精品欧美日韩专区| 国产日韩欧美视频在线| 久久精品成人一区二区三区| 性色av一区二区咪爱| 国产欧美最新羞羞视频在线观看| 久久精精品视频| 亚洲欧洲久久| 国产精品亚洲网站| 欧美另类69精品久久久久9999| 热久久精品国产| 久精品国产欧美| 色中文字幕在线观看| 99久久国产免费免费| 久久国产精品影视| 欧美日韩二三区| 久久久久久久香蕉网| 污污污污污污www网站免费| 国产免费一区二区三区在线观看 | 黄色激情在线视频| 久久99九九| 日韩av色综合| 91国内揄拍国内精品对白| 亚洲综合中文字幕在线| 成人黄色一区二区| 亚洲午夜精品久久久中文影院av| 国产一区不卡在线观看| 国产精品久久久久久久7电影| 欧美综合在线观看视频| 久久久久久久久久久人体| 日韩av在线第一页| 国产成人短视频| 日本a视频在线观看| 久99久视频| 欧美一级二级三级| 国产精品视频99| 国产亚洲欧美在线视频| 最新欧美日韩亚洲| 99久久精品免费看国产四区 | 欧美日韩免费精品| 国产精品视频999| 蜜桃传媒视频麻豆第一区免费观看| 色妞一区二区三区| 加勒比在线一区二区三区观看| www.日本久久久久com.| | 无码内射中文字幕岛国片| 久久五月天婷婷| 日本久久久网站| 久久av免费观看| 欧美精品久久| 精品中文字幕在线| www.com毛片| 日韩免费视频在线观看| 国产精品毛片va一区二区三区| 国产午夜精品一区| 永久久久久久| 91成人免费观看| 欧美一区激情视频在线观看| 国产精品成人国产乱一区| 成人福利网站在线观看| 日本黄网免费一区二区精品| 国产精品丝袜高跟| 国产噜噜噜噜噜久久久久久久久| 一本久久a久久精品vr综合| 国产高清自拍一区| 国内伊人久久久久久网站视频| 欧美激情网站在线观看| 久久男人资源视频| 欧美高清性xxxxhdvideosex| 欧美激情国产高清| 久久国产精品-国产精品| 国产在线视频一区| 无码aⅴ精品一区二区三区浪潮| 北条麻妃一区二区三区中文字幕| 国产三级精品在线不卡| 欧美一区二区三区精美影视| 日韩视频欧美视频| 成人免费视频a| 日本中文字幕久久看| 国产精品第100页| 国产成人中文字幕| 国产精品一区二区三区久久 | 国产大尺度在线观看| 国产在线精品一区二区三区》| 亚洲成人精品电影在线观看| 国产精品第一区| 色偷偷9999www| 波多野结衣精品久久| 免费在线观看一区二区| 亚洲国产精品女人| 国产精品九九九| 久久久久久久爱| 久久综合九色综合网站| 国产日本一区二区三区| 欧美亚洲日本在线观看| 亚洲精品影院| 萌白酱国产一区二区| 久久久精品电影| 国产v综合ⅴ日韩v欧美大片| 99热在线这里只有精品| 韩国精品久久久999| 日韩精品国内| 日本一区二区在线视频观看| 一本久道高清无码视频| 精品国产免费久久久久久尖叫 | 日本免费在线精品| 一区二区精品免费视频| 精品国产无码在线| 久久深夜福利免费观看| 国产av无码专区亚洲精品| 91av一区二区三区| 99久久99久久精品国产片| 国产热re99久久6国产精品| 好吊色欧美一区二区三区四区| 日本久久久久久久久久久| 亚州av一区二区| 亚洲一区二区三区香蕉 | 中文字幕在线亚洲三区| 欧美日韩ab片| 一区二区三区四区不卡| 久久99久久亚洲国产| 久久国产精品偷| 欧美日韩电影在线观看| 精品国产_亚洲人成在线| 久久不射电影网| 久久6免费高清热精品| 九九热这里只有精品免费看| 精品国产免费av| 久久久久国产精品一区| 中文字幕乱码一区二区三区| 久久国产天堂福利天堂| 最新av在线免费观看| 亚洲一区二区中文| 日韩中文字幕在线视频观看| 日韩av观看网址| 欧美中文字幕在线视频| 欧美一区少妇|