加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代做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仿真分析服務-企業(yè)/產品研發(fā)/客戶要求/設計優(yōu)化
    有限元分析 CAE仿真分析服務-企業(yè)/產品研發(fā)
    急尋熱仿真分析?代做熱仿真服務+熱設計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務+熱設計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現(xiàn)代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現(xiàn)代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    亚洲啊v在线观看| 欧美啪啪一区| 女人色偷偷aa久久天堂| 国产免费av一区二区三区| 午夜av不卡| 狠久久av成人天堂| 韩国女主播一区二区三区| 国产精品二区影院| 欧美xxxx做受欧美护士| 尤物精品在线| 麻豆精品av| 日韩精品91亚洲二区在线观看 | 美美哒免费高清在线观看视频一区二区| 日本亚洲不卡| 亚洲色图插插| 欧美一区二区三区婷婷| 国产精品传媒精东影业在线| 欧美在线亚洲| 久久精品电影| 一区二区在线视频观看| 最新亚洲精品| 欧美激情五月| 久久一区亚洲| 91国拍精品国产粉嫩亚洲一区| 免费欧美日韩| 日韩视频不卡| 亚洲成人精选| 亚洲国产专区| 久久精选视频| 精品久久久久久久久久久下田| 亚洲免费观看高清完整版在线观| 麻豆精品久久久| 久久精品一区| 免费在线亚洲欧美| 国产福利91精品一区二区| 天堂√8在线中文| 91中文字幕精品永久在线| 在线亚洲激情| 国产农村妇女毛片精品久久莱园子| 激情婷婷久久| 午夜片欧美伦| 狠狠色综合网| 一本久道久久久| 一本久道久久综合婷婷鲸鱼| 午夜精品网站| 亚洲一区不卡| 亚洲一级在线| 老妇喷水一区二区三区| 久久先锋影音| 97视频热人人精品免费| 欧美韩日高清| 免费在线小视频| 欧美伊人亚洲伊人色综合动图| 亚洲精品tv| 亚洲视频二区| 日本va欧美va欧美va精品| 欧美亚洲一级| 中文字幕日韩一区二区不卡 | 91精品国产91久久综合| 久久影院100000精品| 亚洲香蕉网站| 亚洲欧洲日本mm| 日韩成人免费| 性欧美videohd高精| 国产亚洲人成a在线v网站| 日本视频中文字幕一区二区三区| 日本特黄久久久高潮| 国产视频一区二区在线播放| 亚瑟一区二区三区四区| 极品一区美女高清| 韩日一区二区三区| 亚洲免费中文| 欧美成人精品一区二区男人小说| 成人久久网站| www.91精品| 97久久综合区小说区图片区| 久久裸体网站| 亚洲综合日韩| 青青青国产精品| 亚洲精品婷婷| 亚洲成人黄色| 天天做综合网| av中文资源在线资源免费观看| 欧美gv在线| 一区二区三区在线| 日韩精品一区国产| 久久久天天操| 蜜桃av一区二区三区| 青青草国产一区二区三区| 国产精品v亚洲精品v日韩精品| 亚洲人成亚洲精品| 欧美日韩精品一区二区视频| 久久香蕉精品| 久久精品99国产精品日本| 欧美女王vk| 久久一区二区三区喷水| 日产午夜精品一线二线三线| 久久精品99国产精品日本| 亚洲区小说区| 国产韩国精品一区二区三区| 伊人成综合网站| 国产精品观看| 久久久久国产精品午夜一区| 美女国产一区| 国产精品久久久久久久免费软件| 日韩精品中文字幕一区二区 | 福利一区二区| 亚洲动漫在线观看| 欧美一区二区麻豆红桃视频| 国产精品久久久乱弄| 日韩精品欧美成人高清一区二区| 中文字幕亚洲在线观看| 亚洲欧美日本视频在线观看| 欧美一区影院| 欧美精品中文| 欧美韩国日本在线观看| 国产精品亚洲四区在线观看| 999国产精品视频| 日韩在线观看一区| 亚洲人亚洲人色久| 久久福利一区| 亚洲国产清纯| 偷偷www综合久久久久久久| 欧美伊人亚洲伊人色综合动图| 日韩丝袜视频| 免费高清在线视频一区·| 日本成人在线一区| 欧美午夜精彩| 国产日韩欧美一区| 美女视频免费精品| 日本精品另类| 亚洲精选av| а√天堂8资源在线| 日韩av高清在线观看| 免费观看在线综合| 国产精品片aa在线观看| 99在线|亚洲一区二区| 欧美激情五月| 亚洲一区日韩在线| 欧美黄在线观看| 中文亚洲字幕| 久久综合五月婷婷| 亚洲一区亚洲| 国产精品白丝久久av网站| aa级大片欧美三级| 国产成人ay| 蜜臀国产一区二区三区在线播放| 欧美成人精品一级| 久久av一区| 日韩av二区在线播放| 蜜芽一区二区三区| 99久久香蕉| 国产成人亚洲一区二区三区| 91精品国产91久久久久久密臀| 亚洲国产1区| 国精品一区二区三区| 亚洲国产日韩在线| 先锋影音国产一区| 欧美日韩xxxx| 免费毛片b在线观看| 91精品一区国产高清在线gif| 久久一区中文字幕| 亚洲美女一区| 日本三级亚洲精品| avav成人| 91国语精品自产拍| 美女久久99| 亚洲精品555| 国产高清一区| 日韩经典中文字幕一区| 免费在线小视频| 欧美精选视频在线观看| 国产精品嫩草影院在线看| 另类专区亚洲| 激情亚洲网站| 亚洲成a人片77777在线播放 | 欧美日韩亚洲一区| 国产精品精品国产一区二区| 嗯用力啊快一点好舒服小柔久久| 亚洲国产mv| 丝袜美腿亚洲一区二区图片| 大型av综合网站| 欧美aⅴ一区二区三区视频| 快she精品国产999| 成人在线免费观看网站| 成人免费91| 日韩精品第一| 蜜臀av在线播放一区二区三区 | 亚洲激情视频| 亚洲性视频在线| 亚洲欧洲日韩| 日韩欧美中文| 国产精品免费看| 久久久成人网| 日韩电影在线一区| 麻豆91精品91久久久的内涵| 漫画在线观看av| 伊人蜜桃色噜噜激情综合| 9999久久久久| 国产成人ay|