Open
Conversation
Signed-off-by: Mara-Ioana Nicolae <maraioana9967@gmail.com>
Signed-off-by: Mara <maraioana9967@gmail.com>
Signed-off-by: Mara <maraioana9967@gmail.com>
Signed-off-by: Mara <maraioana9967@gmail.com>
Signed-off-by: Mara <maraioana9967@gmail.com>
Signed-off-by: Mara <maraioana9967@gmail.com>
|
excellent work! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Laborator 5
Exercițiul 1
Timer-ul a fost inițializat folosind
timer_setup, unul din argumente va fi handler-ul care afișează mesajul; apoi a fost planificat folosindmod_timer.Exercițiul 2
În handler-ul ce afișează mesajul am utilizat din nou funcția
mod_timerpentru a replanifica timer-ul.Exercițiul 3
În handler am afișat câmpurile
pidșicommale structuriicurrent. Cu ajutorul variabilei booleenealready_deleted_timerverific dacă timer-ul a fost deja oprit sau nu. Acesta este setata pefalseatunci când timer-ul este intializat sau în funcția init a modulului.Apoi aceasta este setata pe
trueatunci când timer-ul este oprit sau în funcția de exit a modulului.Exercițiul 4
Câmpul boolean
use_blocking_opva semnala dacă în handler se va apela funcția blocantăalloc_iosau se vor afișa informațiile din exercițiul precedent. În testarea task-ului am observat că se generează o eroare:Exercițiul 5
Handler-ul a fost schimbat astfel încât să nu mai apeleze direct funcția
alloc_io, aceasta va fi apelata prin intermediulschedule_work.