mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
note: remove NOTERAM_GETTASKNAME
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -46,22 +46,12 @@
|
||||
* NOTERAM_SETMODE
|
||||
* - Set overwrite mode
|
||||
* Argument: A read-only pointer to unsigned int
|
||||
* NOTERAM_GETTASKNAME
|
||||
* - Get task name string
|
||||
* Argument: A writable pointer to struct
|
||||
* noteram_get_taskname_s
|
||||
* Result: If -ESRCH, the corresponding task name doesn't
|
||||
* exist.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DRIVERS_NOTERAM
|
||||
#define NOTERAM_CLEAR _NOTERAMIOC(0x01)
|
||||
#define NOTERAM_GETMODE _NOTERAMIOC(0x02)
|
||||
#define NOTERAM_SETMODE _NOTERAMIOC(0x03)
|
||||
#if defined(CONFIG_DRIVERS_NOTE_TASKNAME_BUFSIZE) && \
|
||||
CONFIG_DRIVERS_NOTE_TASKNAME_BUFSIZE > 0
|
||||
#define NOTERAM_GETTASKNAME _NOTERAMIOC(0x04)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Overwrite mode definitions */
|
||||
@@ -76,15 +66,7 @@
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/* This is the type of the argument passed to the NOTERAM_GETTASKNAME ioctl */
|
||||
|
||||
#ifdef NOTERAM_GETTASKNAME
|
||||
struct noteram_get_taskname_s
|
||||
{
|
||||
pid_t pid;
|
||||
char taskname[CONFIG_TASK_NAME_SIZE + 1];
|
||||
};
|
||||
#endif
|
||||
struct noteram_driver_s;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
|
||||
Reference in New Issue
Block a user