Computers and Technology
Computers and Technology, 21.01.2020 22:31, knj281

Modify the code below to do the following:

1. print out the value of golden_ratio_prime in the simple_init() function.

2. print out the greatest common divisor of 3,300 and 24 in the simple_exit() function.

simple. c

#include

#include

#include

/* this function is called when the module is loaded. */

int simple_init(void)

{

printk(kern_info "loading module\n");

return 0;

}

/* this function is called when the module is removed. */

void simple_exit(void) {

printk(kern_info "removing module\n");

}

/* macros for registering module entry and exit points. */

module_init( simple_init );

module_exit( simple_exit );

module_license("gpl");

module_description("simple module");

module_author("sgg");

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, sjackson0625p8w1a0
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, random286
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
image
Computers and Technology, 23.06.2019 03:50, dondre54
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, solizpaco7124
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
Do you know the correct answer?
Modify the code below to do the following:

1. print out the value of golden_ratio_prime...

Questions in other subjects: