mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
CGroup API files: rename read/write_uint methods to read_write_u64
Several people have justifiably complained that the "_uint" suffix is inappropriate for functions that handle u64 values, so this patch just renames all these functions and their users to have the suffic _u64. [peterz@infradead.org: build fix] Signed-off-by: Paul Menage <menage@google.com> Cc: "Li Zefan" <lizf@cn.fujitsu.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Paul Jackson <pj@sgi.com> Cc: Pavel Emelyanov <xemul@openvz.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: "YAMAMOTO Takashi" <yamamoto@valinux.co.jp> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3ff31d0cca
commit
f4c753b7ea
4 changed files with 32 additions and 32 deletions
|
@ -190,20 +190,20 @@ struct cftype {
|
|||
struct file *file,
|
||||
char __user *buf, size_t nbytes, loff_t *ppos);
|
||||
/*
|
||||
* read_uint() is a shortcut for the common case of returning a
|
||||
* read_u64() is a shortcut for the common case of returning a
|
||||
* single integer. Use it in place of read()
|
||||
*/
|
||||
u64 (*read_uint) (struct cgroup *cgrp, struct cftype *cft);
|
||||
u64 (*read_u64) (struct cgroup *cgrp, struct cftype *cft);
|
||||
ssize_t (*write) (struct cgroup *cgrp, struct cftype *cft,
|
||||
struct file *file,
|
||||
const char __user *buf, size_t nbytes, loff_t *ppos);
|
||||
|
||||
/*
|
||||
* write_uint() is a shortcut for the common case of accepting
|
||||
* write_u64() is a shortcut for the common case of accepting
|
||||
* a single integer (as parsed by simple_strtoull) from
|
||||
* userspace. Use in place of write(); return 0 or error.
|
||||
*/
|
||||
int (*write_uint) (struct cgroup *cgrp, struct cftype *cft, u64 val);
|
||||
int (*write_u64) (struct cgroup *cgrp, struct cftype *cft, u64 val);
|
||||
|
||||
int (*release) (struct inode *inode, struct file *file);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue