@sofia have you had a look at Plan9? They pursued "everything is a file" much more thoroughly, and had a more sensible implementation of devices. Most devices would be a two file directory: one for data one for control. The control file which would read and write short text commands. Much better than 200 different ioctls.