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

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

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

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

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

          9000px;">

                久久精品99国产精品日本| 久久不见久久见免费视频7 | 一区二区三区精品视频在线| 香蕉久久一区二区不卡无毒影院| 韩国av一区二区三区四区| 99re在线精品| 欧美mv日韩mv国产网站app| 亚洲欧洲日韩av| 国内成+人亚洲+欧美+综合在线| 成人黄动漫网站免费app| 正在播放亚洲一区| 亚洲女性喷水在线观看一区| 日韩电影在线一区| 在线观看视频欧美| 国产精品国产三级国产aⅴ原创| 性做久久久久久| 99精品桃花视频在线观看| 久久精品一二三| 免费人成精品欧美精品| 色婷婷av一区二区三区之一色屋| 久久久久9999亚洲精品| 毛片不卡一区二区| 日韩视频一区在线观看| 婷婷夜色潮精品综合在线| 欧美亚洲一区二区在线| 日韩理论片在线| 粗大黑人巨茎大战欧美成人| 欧美精品一区二区久久久| 婷婷综合五月天| 欧美久久久久久蜜桃| 亚洲一区二区三区美女| 色婷婷av一区二区三区gif| 国产日产精品一区| 国产在线不卡视频| 精品剧情v国产在线观看在线| 日韩高清国产一区在线| 91麻豆精品久久久久蜜臀| 日韩精品亚洲一区二区三区免费| 欧美片网站yy| 日日摸夜夜添夜夜添精品视频| 欧美性感一类影片在线播放| 亚洲一级不卡视频| 欧美性色黄大片手机版| 亚洲www啪成人一区二区麻豆| 在线观看91视频| 亚洲午夜羞羞片| 91精品在线观看入口| 麻豆极品一区二区三区| www成人在线观看| 国产资源在线一区| 国产日韩综合av| 成年人网站91| 亚洲国产精品视频| 精品国产一区久久| 大白屁股一区二区视频| 亚洲精品久久久蜜桃| 欧美日韩一二三| 蜜桃av噜噜一区| 国产精品青草综合久久久久99| 99riav一区二区三区| 亚洲成人在线观看视频| 日韩亚洲欧美成人一区| 国产成人精品影视| 一区二区三区在线免费视频| 欧美高清视频一二三区 | www.99精品| 亚洲精选免费视频| 欧美一级日韩一级| 国产成人精品免费看| 亚洲在线成人精品| 日韩欧美一级二级| 成人av电影在线| 奇米在线7777在线精品| 亚洲国产精品传媒在线观看| 色婷婷综合五月| 精品一区二区三区在线播放| 国产精品福利一区| 91麻豆精品国产91久久久久久 | 九九在线精品视频| 亚洲免费电影在线| 精品国产网站在线观看| 91碰在线视频| 久久精品国内一区二区三区| 国产精品情趣视频| 日韩精品一区二区三区在线| 91一区二区在线| 国产原创一区二区| 亚洲va欧美va人人爽午夜| 久久精品欧美一区二区三区麻豆| 欧美四级电影网| 成人在线视频首页| 麻豆精品国产91久久久久久| 一区二区三国产精华液| 久久久噜噜噜久久中文字幕色伊伊| 色婷婷久久综合| 成人开心网精品视频| 精品综合免费视频观看| 亚洲18影院在线观看| 亚洲青青青在线视频| 国产色综合久久| 日韩一级免费观看| 在线精品观看国产| 99视频精品在线| 国产91富婆露脸刺激对白| 麻豆精品一区二区三区| 视频一区二区三区在线| 一区二区三区精品在线观看| 亚洲国产精品高清| 国产欧美一区二区精品性色超碰| 欧美sm美女调教| 日韩欧美在线观看一区二区三区| 在线观看欧美日本| 在线观看亚洲a| 91福利视频网站| 色婷婷亚洲一区二区三区| 不卡电影一区二区三区| 不卡一区中文字幕| 99久久久久久| 色菇凉天天综合网| 94色蜜桃网一区二区三区| 成人永久看片免费视频天堂| 国产精品一二一区| 国产91丝袜在线播放九色| 国产毛片精品国产一区二区三区| 精品一区二区三区蜜桃| 国产自产v一区二区三区c| 国产精品一区三区| 成人激情动漫在线观看| 成人免费视频app| www.av精品| 色www精品视频在线观看| 日本精品免费观看高清观看| 91久久精品一区二区| 欧美视频三区在线播放| 欧美日韩国产大片| 欧美日本在线看| 欧美一级日韩一级| 久久色在线视频| 中文在线一区二区| 亚洲美女精品一区| 日韩精品电影一区亚洲| 精一区二区三区| 99久久精品国产一区二区三区| 91国偷自产一区二区开放时间| 欧美日韩精品一区二区三区四区| 91精品国产综合久久精品| 精品国产髙清在线看国产毛片| 久久久午夜精品理论片中文字幕| 中文一区二区在线观看| 亚洲第一搞黄网站| 国产乱色国产精品免费视频| 成人av免费在线观看| 欧美综合色免费| 日韩精品一区二区三区视频播放| 久久久久综合网| 一区二区三区加勒比av| 美国av一区二区| 色综合中文字幕| 日韩一区二区精品在线观看| 国产日本一区二区| 午夜视频在线观看一区二区| 国产激情精品久久久第一区二区| 色综合中文字幕| 2023国产精品自拍| 一区二区三区中文在线观看| 久久精品国产999大香线蕉| 91免费版在线看| 久久久一区二区| 首页国产欧美日韩丝袜| 成人福利视频网站| 日韩精品一区二区三区三区免费| 国产精品进线69影院| 美腿丝袜亚洲三区| 色天使久久综合网天天| 精品欧美乱码久久久久久| 亚洲人午夜精品天堂一二香蕉| 免费亚洲电影在线| 欧美吻胸吃奶大尺度电影| 国产日韩欧美综合一区| 视频一区二区国产| 日本韩国欧美一区二区三区| 国产亚洲精品中文字幕| 天天综合日日夜夜精品| 成人激情开心网| 久久久噜噜噜久久中文字幕色伊伊| 午夜激情久久久| 一本到不卡免费一区二区| 国产色91在线| 精品一区二区三区免费观看| 欧美日韩成人综合在线一区二区| 国产精品入口麻豆原神| 精品一二线国产| 91麻豆精品国产自产在线| 一区二区在线观看不卡| 粉嫩av一区二区三区在线播放| 欧美岛国在线观看| 日韩av成人高清| 欧美精品黑人性xxxx| 亚洲一二三四在线| 欧美视频一二三区|