Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
include
tenok
sys
sysmacros.h
Go to the documentation of this file.
1
4
#ifndef _TENOK_SYS_SYSMACROS_H
5
#define _TENOK_SYS_SYSMACROS_H
6
7
#define major(dev) ((int) (((dev) >> 8) & 0xff))
8
#define minor(dev) ((int) ((dev) &0xff))
9
#define makedev(ma, mi) ((((ma) &0xff) << 8) | ((mi) &0xff))
10
11
#endif
Generated by
1.9.1