
# getmajor

Returns the major device number for a specified device.

```
vmlinux`dev_t getmajor(vmlinux`dev_t))
```

The `getmajor` function returns the major device number for a specified device.

**Parent topic:**[DTrace Function Reference](../reference/dtrace_functions.md)

