note: remove NOTERAM_GETTASKNAME

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2023-08-11 10:31:03 +08:00
committed by Xiang Xiao
parent 39001e3705
commit 84799d15ac
3 changed files with 5 additions and 56 deletions
+1 -19
View File
@@ -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