Home | History | Annotate | Download | only in src

Lines Matching refs:attr

18 static int openattr(pid_t pid, const char *attr, int flags)
25 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
27 rc = asprintf(&path, "/proc/thread-self/attr/%s", attr);
35 rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr);
50 pid_t pid, const char *attr)
58 fd = openattr(pid, attr, O_RDONLY);
97 pid_t pid, const char *attr)
103 fd = openattr(pid, attr, O_RDWR);
123 #define getselfattr_def(fn, attr) \
126 return getprocattrcon(c, 0, #attr); \
129 #define setselfattr_def(fn, attr) \
132 return setprocattrcon(c, 0, #attr); \
135 #define all_selfattr_def(fn, attr) \
136 getselfattr_def(fn, attr) \
137 setselfattr_def(fn, attr)
139 #define getpidattr_def(fn, attr) \
146 return getprocattrcon(c, pid, #attr); \