Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5a3ff5c4
Commit
5a3ff5c4
authored
May 11, 2003
by
Linus Torvalds
Committed by
Linus Torvalds
May 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add user pointer annotations.
parent
a9391eac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
arch/i386/kernel/irq.c
arch/i386/kernel/irq.c
+3
-3
arch/i386/kernel/ptrace.c
arch/i386/kernel/ptrace.c
+8
-8
include/linux/proc_fs.h
include/linux/proc_fs.h
+1
-1
include/linux/seq_file.h
include/linux/seq_file.h
+1
-1
mm/slab.c
mm/slab.c
+1
-1
No files found.
arch/i386/kernel/irq.c
View file @
5a3ff5c4
...
@@ -828,7 +828,7 @@ static struct proc_dir_entry * irq_dir [NR_IRQS];
...
@@ -828,7 +828,7 @@ static struct proc_dir_entry * irq_dir [NR_IRQS];
#define HEX_DIGITS 8
#define HEX_DIGITS 8
static
unsigned
int
parse_hex_value
(
const
char
*
buffer
,
static
unsigned
int
parse_hex_value
(
const
char
__user
*
buffer
,
unsigned
long
count
,
unsigned
long
*
ret
)
unsigned
long
count
,
unsigned
long
*
ret
)
{
{
unsigned
char
hexnum
[
HEX_DIGITS
];
unsigned
char
hexnum
[
HEX_DIGITS
];
...
@@ -878,7 +878,7 @@ static int irq_affinity_read_proc (char *page, char **start, off_t off,
...
@@ -878,7 +878,7 @@ static int irq_affinity_read_proc (char *page, char **start, off_t off,
return
sprintf
(
page
,
"%08lx
\n
"
,
irq_affinity
[(
long
)
data
]);
return
sprintf
(
page
,
"%08lx
\n
"
,
irq_affinity
[(
long
)
data
]);
}
}
static
int
irq_affinity_write_proc
(
struct
file
*
file
,
const
char
*
buffer
,
static
int
irq_affinity_write_proc
(
struct
file
*
file
,
const
char
__user
*
buffer
,
unsigned
long
count
,
void
*
data
)
unsigned
long
count
,
void
*
data
)
{
{
int
irq
=
(
long
)
data
,
full_count
=
count
,
err
;
int
irq
=
(
long
)
data
,
full_count
=
count
,
err
;
...
@@ -914,7 +914,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
...
@@ -914,7 +914,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
return
sprintf
(
page
,
"%08lx
\n
"
,
*
mask
);
return
sprintf
(
page
,
"%08lx
\n
"
,
*
mask
);
}
}
static
int
prof_cpu_mask_write_proc
(
struct
file
*
file
,
const
char
*
buffer
,
static
int
prof_cpu_mask_write_proc
(
struct
file
*
file
,
const
char
__user
*
buffer
,
unsigned
long
count
,
void
*
data
)
unsigned
long
count
,
void
*
data
)
{
{
unsigned
long
*
mask
=
(
unsigned
long
*
)
data
,
full_count
=
count
,
err
;
unsigned
long
*
mask
=
(
unsigned
long
*
)
data
,
full_count
=
count
,
err
;
...
...
arch/i386/kernel/ptrace.c
View file @
5a3ff5c4
...
@@ -155,7 +155,7 @@ void ptrace_disable(struct task_struct *child)
...
@@ -155,7 +155,7 @@ void ptrace_disable(struct task_struct *child)
*/
*/
static
int
static
int
ptrace_get_thread_area
(
struct
task_struct
*
child
,
ptrace_get_thread_area
(
struct
task_struct
*
child
,
int
idx
,
struct
user_desc
*
user_desc
)
int
idx
,
struct
user_desc
__user
*
user_desc
)
{
{
struct
user_desc
info
;
struct
user_desc
info
;
struct
desc_struct
*
desc
;
struct
desc_struct
*
desc
;
...
@@ -206,7 +206,7 @@ ptrace_get_thread_area(struct task_struct *child,
...
@@ -206,7 +206,7 @@ ptrace_get_thread_area(struct task_struct *child,
*/
*/
static
int
static
int
ptrace_set_thread_area
(
struct
task_struct
*
child
,
ptrace_set_thread_area
(
struct
task_struct
*
child
,
int
idx
,
struct
user_desc
*
user_desc
)
int
idx
,
struct
user_desc
__user
*
user_desc
)
{
{
struct
user_desc
info
;
struct
user_desc
info
;
struct
desc_struct
*
desc
;
struct
desc_struct
*
desc
;
...
@@ -458,7 +458,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
...
@@ -458,7 +458,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
0
;
ret
=
0
;
if
(
!
child
->
used_math
)
if
(
!
child
->
used_math
)
init_fpu
(
child
);
init_fpu
(
child
);
get_fpregs
((
struct
user_i387_struct
*
)
data
,
child
);
get_fpregs
((
struct
user_i387_struct
__user
*
)
data
,
child
);
break
;
break
;
}
}
...
@@ -469,7 +469,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
...
@@ -469,7 +469,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
break
;
break
;
}
}
child
->
used_math
=
1
;
child
->
used_math
=
1
;
set_fpregs
(
child
,
(
struct
user_i387_struct
*
)
data
);
set_fpregs
(
child
,
(
struct
user_i387_struct
__user
*
)
data
);
ret
=
0
;
ret
=
0
;
break
;
break
;
}
}
...
@@ -482,7 +482,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
...
@@ -482,7 +482,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
}
}
if
(
!
child
->
used_math
)
if
(
!
child
->
used_math
)
init_fpu
(
child
);
init_fpu
(
child
);
ret
=
get_fpxregs
((
struct
user_fxsr_struct
*
)
data
,
child
);
ret
=
get_fpxregs
((
struct
user_fxsr_struct
__user
*
)
data
,
child
);
break
;
break
;
}
}
...
@@ -493,18 +493,18 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
...
@@ -493,18 +493,18 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
break
;
break
;
}
}
child
->
used_math
=
1
;
child
->
used_math
=
1
;
ret
=
set_fpxregs
(
child
,
(
struct
user_fxsr_struct
*
)
data
);
ret
=
set_fpxregs
(
child
,
(
struct
user_fxsr_struct
__user
*
)
data
);
break
;
break
;
}
}
case
PTRACE_GET_THREAD_AREA
:
case
PTRACE_GET_THREAD_AREA
:
ret
=
ptrace_get_thread_area
(
child
,
ret
=
ptrace_get_thread_area
(
child
,
addr
,
(
struct
user_desc
*
)
data
);
addr
,
(
struct
user_desc
__user
*
)
data
);
break
;
break
;
case
PTRACE_SET_THREAD_AREA
:
case
PTRACE_SET_THREAD_AREA
:
ret
=
ptrace_set_thread_area
(
child
,
ret
=
ptrace_set_thread_area
(
child
,
addr
,
(
struct
user_desc
*
)
data
);
addr
,
(
struct
user_desc
__user
*
)
data
);
break
;
break
;
default:
default:
...
...
include/linux/proc_fs.h
View file @
5a3ff5c4
...
@@ -48,7 +48,7 @@ enum {
...
@@ -48,7 +48,7 @@ enum {
typedef
int
(
read_proc_t
)(
char
*
page
,
char
**
start
,
off_t
off
,
typedef
int
(
read_proc_t
)(
char
*
page
,
char
**
start
,
off_t
off
,
int
count
,
int
*
eof
,
void
*
data
);
int
count
,
int
*
eof
,
void
*
data
);
typedef
int
(
write_proc_t
)(
struct
file
*
file
,
const
char
*
buffer
,
typedef
int
(
write_proc_t
)(
struct
file
*
file
,
const
char
__user
*
buffer
,
unsigned
long
count
,
void
*
data
);
unsigned
long
count
,
void
*
data
);
typedef
int
(
get_info_t
)(
char
*
,
char
**
,
off_t
,
int
);
typedef
int
(
get_info_t
)(
char
*
,
char
**
,
off_t
,
int
);
...
...
include/linux/seq_file.h
View file @
5a3ff5c4
...
@@ -29,7 +29,7 @@ struct seq_operations {
...
@@ -29,7 +29,7 @@ struct seq_operations {
};
};
int
seq_open
(
struct
file
*
,
struct
seq_operations
*
);
int
seq_open
(
struct
file
*
,
struct
seq_operations
*
);
ssize_t
seq_read
(
struct
file
*
,
char
*
,
size_t
,
loff_t
*
);
ssize_t
seq_read
(
struct
file
*
,
char
__user
*
,
size_t
,
loff_t
*
);
loff_t
seq_lseek
(
struct
file
*
,
loff_t
,
int
);
loff_t
seq_lseek
(
struct
file
*
,
loff_t
,
int
);
int
seq_release
(
struct
inode
*
,
struct
file
*
);
int
seq_release
(
struct
inode
*
,
struct
file
*
);
int
seq_escape
(
struct
seq_file
*
,
const
char
*
,
const
char
*
);
int
seq_escape
(
struct
seq_file
*
,
const
char
*
,
const
char
*
);
...
...
mm/slab.c
View file @
5a3ff5c4
...
@@ -2448,7 +2448,7 @@ struct seq_operations slabinfo_op = {
...
@@ -2448,7 +2448,7 @@ struct seq_operations slabinfo_op = {
* @count: data len
* @count: data len
* @data: unused
* @data: unused
*/
*/
ssize_t
slabinfo_write
(
struct
file
*
file
,
const
char
*
buffer
,
ssize_t
slabinfo_write
(
struct
file
*
file
,
const
char
__user
*
buffer
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
kbuf
[
MAX_SLABINFO_WRITE
+
1
],
*
tmp
;
char
kbuf
[
MAX_SLABINFO_WRITE
+
1
],
*
tmp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment