summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-26 00:09:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-26 00:09:10 +0000
commit8a7c3747c7e7e97787c338f89d001db9e457351e (patch)
tree5255efbd3df2d9a41735c89d3dab4221b3530a3a /sys
parent3eaba3bd59a39b1ad536f87f679a8cb5b0c459ca (diff)
knf
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/bio.c44
1 files changed, 12 insertions, 32 deletions
diff --git a/sys/dev/bio.c b/sys/dev/bio.c
index 4e38d1a1aa1..a1e5023faec 100644
--- a/sys/dev/bio.c
+++ b/sys/dev/bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio.c,v 1.6 2005/08/17 02:32:23 dlg Exp $ */
+/* $OpenBSD: bio.c,v 1.7 2006/05/26 00:09:09 deraadt Exp $ */
/*
* Copyright (c) 2002 Niklas Hallqvist. All rights reserved.
@@ -57,42 +57,30 @@ struct bio_mapping *bio_lookup(char *);
int bio_validate(void *);
void
-bioattach(nunits)
- int nunits;
+bioattach(int nunits)
{
}
int
-bioopen(dev, flags, mode, p)
- dev_t dev;
- int flags, mode;
- struct proc *p;
+bioopen(dev_t dev, int flags, int mode, struct proc *p)
{
return (0);
}
int
-bioclose(dev, flags, mode, p)
- dev_t dev;
- int flags, mode;
- struct proc *p;
+bioclose(dev_t dev, int flags, int mode, struct proc *p)
{
return (0);
}
int
-bioioctl(dev, cmd, addr, flag, p)
- dev_t dev;
- u_long cmd;
- caddr_t addr;
- int flag;
- struct proc *p;
+bioioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
{
+ struct bio_locate *locate;
+ struct bio_common *common;
char name[16];
size_t len;
int error;
- struct bio_locate *locate;
- struct bio_common *common;
switch (cmd) {
case BIOCLOCATE:
@@ -116,9 +104,7 @@ bioioctl(dev, cmd, addr, flag, p)
}
int
-bio_register(dev, ioctl)
- struct device *dev;
- int (*ioctl)(struct device *, u_long, caddr_t);
+bio_register(struct device *dev, int (*ioctl)(struct device *, u_long, caddr_t))
{
struct bio_mapping *bm;
@@ -132,8 +118,7 @@ bio_register(dev, ioctl)
}
void
-bio_unregister(dev)
- struct device *dev;
+bio_unregister(struct device *dev)
{
struct bio_mapping *bm, *next;
@@ -148,8 +133,7 @@ bio_unregister(dev)
}
struct bio_mapping *
-bio_lookup(name)
- char *name;
+bio_lookup(char *name)
{
struct bio_mapping *bm;
@@ -160,8 +144,7 @@ bio_lookup(name)
}
int
-bio_validate(cookie)
- void *cookie;
+bio_validate(void *cookie)
{
struct bio_mapping *bm;
@@ -172,10 +155,7 @@ bio_validate(cookie)
}
int
-bio_delegate_ioctl(bm, cmd, addr)
- struct bio_mapping *bm;
- u_long cmd;
- caddr_t addr;
+bio_delegate_ioctl(struct bio_mapping *bm, u_long cmd, caddr_t addr)
{
return (bm->bm_ioctl(bm->bm_dev, cmd, addr));
}