Called shm functions instead of ioctl

I fixed a few bugs from previous commit and I called shared memmory
function instead of ioctls for setting the interface description.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>