You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #3046 - siegfried:ctl_info, r=JohnTitor
Add struct ctl_info
Add the struct mentioned in #3045
Not sure if I should add `CTLIOCGINFO ` because it is wrapped in a macro:
```c
#define CTLIOCGINFO _IOWR('N', 3, struct ctl_info) /* get id from name */
```
The C definition of `ctl_info` is:
```c
/*!
* `@defined` MAX_KCTL_NAME
* `@discussion` Kernel control names must be no longer than
* MAX_KCTL_NAME.
*/
#define MAX_KCTL_NAME 96
/*
* Controls destined to the Controller Manager.
*/
/*!
* `@struct` ctl_info
* `@discussion` This structure is used with the CTLIOCGINFO ioctl to
* translate from a kernel control name to a control id.
* `@field` ctl_id The kernel control id, filled out upon return.
* `@field` ctl_name The kernel control name to find.
*/
struct ctl_info {
u_int32_t ctl_id; /* Kernel Controller ID */
char ctl_name[MAX_KCTL_NAME]; /* Kernel Controller Name (a C string) */
};
```
0 commit comments