devtoname (9)
Leading comments
Copyright (c) 1999 Chris Costello
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or oth...
(The comments found at the beginning of the groff file "man9/devtoname.9freebsd".)
NAME
devtoname
- converts character device into a string indicating the device name
SYNOPSIS
In sys/param.h
In sys/conf.h
Ft const char *
Fn devtoname struct cdev *dev
DESCRIPTION
The
Fn devtoname
function returns a pointer to the name of the device passed to it.
The name is whatever was set to it in
Fn make_dev .
HISTORY
The
Fn devtoname
interface first appeared in
Fx 4.0