dthain / basekernel

A simple OS kernel for research, teaching, and fun.
GNU General Public License v2.0
806 stars 110 forks source link

Kobject dimensions syscall #179

Closed jmazanec15 closed 6 years ago

jmazanec15 commented 6 years ago

I created a system call to get the dimensions of the file and graphics kobject. For the graphics kobject, it fills an array of size 4 with the X position, Y position, Width and Height. For the file, it fills an array of size 2 with the file size and reference count.

I tested these calls in awind.c

jmazanec15 commented 6 years ago

I made changes so that a user can put an upper limit on the number of dimensions they want to get back. file objects set at most 1 dimension and graphics objects set at most 2 dimensions.