hark130 / sketchy-idea

Reusable, stand-alone, Linux code
GNU General Public License v3.0
0 stars 0 forks source link

13-3: dup, ioctl, and fcntl #16

Open hark130 opened 4 months ago

hark130 commented 4 months ago
  1. Design a new SKID library name to encapsulate this work
  2. Create a skid_file_descriptor_control.h
  3. Create a skid_file_descriptor_control.c
  4. Write a build rule
  5. Write some tests

Add functions for these "demonstrate the proper use of..." objectives:

NOTE: You'll probably want to add a generic open() implementation somewhere?

hark130 commented 4 months ago

This has a good, practical rundown of ioctl usage. This seems to have some good code examples.

hark130 commented 2 months ago

SPOILERS: There's a character driver requirement in the JQR line items so maybe save the ioctl work until then? Doubly so if there's a LKM line item.