NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

f_mode
FMODE_READ,FMODE_WRITE
// Check in open & ioctl

f_flag
O_RDONLY, O_NONBLOCK, O_SYNC(, O_ASYNC?)
// What is O_RDONLY's relationship with / difference from FMODE_READ & FMODE_READ???
// Usually check f_mode rather than f_flags

f_op
// Is changed in open based on minor number in some drivers. Kinda like method overriding


Chapter #1 Using the ioctl Argument
// safe transfer of memory content between kernel and user space

Chapter #6 Blocking read when there is writer


SHIT TO IMPLEMENT:
open, release, read, write, lseek, poll, unlocked_ioctl

CONCERNS 2 ADDRESS:
- LOCKS AND SEMAPHORES?! WHETHER TO KEEP THEM
- OTHER VARIATIONS/VERSIONS OF THE STANDARD DEVICE DRIVER CODE?! WHETHER TO GET ANYTHING FROM IT OR LET IT GO
- "Each cache index works as a seperate buffer and a process can switch among them as it calls"?!??!
- memcache?! the fuck was that
- How to keep track of processes that keep the device open, and with which purpose/privilege(read, write) they keep it open??
- How to transform the quantum, quantum_set structure of scull to dev driver we are preparing?!
- THIS:
"Each minor device should work as a separate memcache device. Device driver can define a default buffer
size per cache index which has default value 4096. This values are module parameters that can be set on
module load.
modprobe memcache bufferlimit=4096 numminors=8"
-


- Check if ioctl functions requested have equivalents in scull
- define the distinction between driver and device in the context of the homework
- clarify the modprobe thing
- clarify why buffer limit is 4096 by default while cache indices are mentioned to be 1024 bytes, max.
- clarify what the heck numminors are and how they are essential/used.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.