
The Kernel/API directory in general shouldn't include userspace code, but structure definitions that both are shared between the Kernel and userspace. LibC is the most appropriate place for these methods as they're already included in the sys/sysmacros.h file to create a set of convenient macros for these methods.
13 lines
311 B
C
13 lines
311 B
C
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <sys/device.h>
|
|
|
|
#define makedev(major, minor) serenity_dev_makedev((major), (minor))
|
|
#define major(dev) serenity_dev_major(dev)
|
|
#define minor(dev) serenity_dev_minor(dev)
|