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
nexedi
linux
Commits
0f18f55b
Commit
0f18f55b
authored
Oct 08, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch/sparc64/kernel/ioctl32.c: Block ioctl handling fix.
parent
a642eaa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
7 deletions
+41
-7
arch/sparc64/kernel/ioctl32.c
arch/sparc64/kernel/ioctl32.c
+41
-7
No files found.
arch/sparc64/kernel/ioctl32.c
View file @
0f18f55b
...
...
@@ -4216,6 +4216,39 @@ static int mtd_rw_oob(unsigned int fd, unsigned int cmd, unsigned long arg)
return
((
0
==
ret
)
?
0
:
-
EFAULT
);
}
/* Fix sizeof(sizeof()) breakage */
#define BLKELVGET_32 _IOR(0x12,106,int)
#define BLKELVSET_32 _IOW(0x12,107,int)
#define BLKBSZGET_32 _IOR(0x12,112,int)
#define BLKBSZSET_32 _IOW(0x12,113,int)
#define BLKGETSIZE64_32 _IOR(0x12,114,int)
static
int
do_blkelvget
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
return
sys_ioctl
(
fd
,
BLKELVGET
,
arg
);
}
static
int
do_blkelvset
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
return
sys_ioctl
(
fd
,
BLKELVSET
,
arg
);
}
static
int
do_blkbszget
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
return
sys_ioctl
(
fd
,
BLKBSZGET
,
arg
);
}
static
int
do_blkbszset
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
return
sys_ioctl
(
fd
,
BLKBSZSET
,
arg
);
}
static
int
do_blkgetsize64
(
unsigned
int
fd
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
return
sys_ioctl
(
fd
,
BLKGETSIZE64
,
arg
);
}
struct
ioctl_trans
{
unsigned
int
cmd
;
unsigned
int
handler
;
...
...
@@ -4338,10 +4371,6 @@ COMPATIBLE_IOCTL(BLKRRPART)
COMPATIBLE_IOCTL
(
BLKFLSBUF
)
COMPATIBLE_IOCTL
(
BLKSECTSET
)
COMPATIBLE_IOCTL
(
BLKSSZGET
)
COMPATIBLE_IOCTL
(
BLKBSZGET
)
COMPATIBLE_IOCTL
(
BLKBSZSET
)
COMPATIBLE_IOCTL
(
BLKGETSIZE64
)
/* RAID */
COMPATIBLE_IOCTL
(
RAID_VERSION
)
COMPATIBLE_IOCTL
(
GET_ARRAY_INFO
)
...
...
@@ -4881,9 +4910,6 @@ COMPATIBLE_IOCTL(DRM_IOCTL_LOCK)
COMPATIBLE_IOCTL
(
DRM_IOCTL_UNLOCK
)
COMPATIBLE_IOCTL
(
DRM_IOCTL_FINISH
)
#endif
/* DRM */
/* elevator */
COMPATIBLE_IOCTL
(
BLKELVGET
)
COMPATIBLE_IOCTL
(
BLKELVSET
)
/* Big W */
/* WIOC_GETSUPPORT not yet implemented -E */
COMPATIBLE_IOCTL
(
WDIOC_GETSTATUS
)
...
...
@@ -5140,6 +5166,14 @@ HANDLE_IOCTL(USBDEVFS_BULK32, do_usbdevfs_bulk)
HANDLE_IOCTL
(
USBDEVFS_REAPURB32
,
do_usbdevfs_reapurb
)
HANDLE_IOCTL
(
USBDEVFS_REAPURBNDELAY32
,
do_usbdevfs_reapurb
)
HANDLE_IOCTL
(
USBDEVFS_DISCSIGNAL32
,
do_usbdevfs_discsignal
)
/* take care of sizeof(sizeof()) breakage */
/* elevator */
HANDLE_IOCTL
(
BLKELVGET_32
,
do_blkelvget
)
HANDLE_IOCTL
(
BLKELVSET_32
,
do_blkelvset
)
/* block stuff */
HANDLE_IOCTL
(
BLKBSZGET_32
,
do_blkbszget
)
HANDLE_IOCTL
(
BLKBSZSET_32
,
do_blkbszset
)
HANDLE_IOCTL
(
BLKGETSIZE64_32
,
do_blkgetsize64
)
IOCTL_TABLE_END
unsigned
int
ioctl32_hash_table
[
1024
];
...
...
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