Use d_thread_t for cdevsw functions instead of struct thread * so that it
is easier to share this code with 4-stable.
This commit is contained in:
parent
87e5d36101
commit
6b4d1b08a2
@ -194,19 +194,19 @@ acpi_capm_get_pwstatus(apm_pwstatus_t app)
|
||||
}
|
||||
|
||||
static int
|
||||
apmopen(dev_t dev, int flag, int fmt, struct thread *td)
|
||||
apmopen(dev_t dev, int flag, int fmt, d_thread_t *td)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
apmclose(dev_t dev, int flag, int fmt, struct thread *td)
|
||||
apmclose(dev_t dev, int flag, int fmt, d_thread_t *td)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
|
||||
apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, d_thread_t *td)
|
||||
{
|
||||
int error = 0;
|
||||
struct acpi_softc *acpi_sc;
|
||||
@ -304,7 +304,7 @@ apmwrite(dev_t dev, struct uio *uio, int ioflag)
|
||||
}
|
||||
|
||||
static int
|
||||
apmpoll(dev_t dev, int events, struct thread *td)
|
||||
apmpoll(dev_t dev, int events, d_thread_t *td)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
@ -1786,19 +1786,19 @@ acpi_deregister_ioctl(u_long cmd, int (* fn)(u_long cmd, caddr_t addr, void *arg
|
||||
}
|
||||
|
||||
static int
|
||||
acpiopen(dev_t dev, int flag, int fmt, struct thread *td)
|
||||
acpiopen(dev_t dev, int flag, int fmt, d_thread_t *td)
|
||||
{
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int
|
||||
acpiclose(dev_t dev, int flag, int fmt, struct thread *td)
|
||||
acpiclose(dev_t dev, int flag, int fmt, d_thread_t *td)
|
||||
{
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int
|
||||
acpiioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
|
||||
acpiioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, d_thread_t *td)
|
||||
{
|
||||
struct acpi_softc *sc;
|
||||
struct acpi_ioctl_hook *hp;
|
||||
|
@ -194,19 +194,19 @@ acpi_capm_get_pwstatus(apm_pwstatus_t app)
|
||||
}
|
||||
|
||||
static int
|
||||
apmopen(dev_t dev, int flag, int fmt, struct thread *td)
|
||||
apmopen(dev_t dev, int flag, int fmt, d_thread_t *td)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
apmclose(dev_t dev, int flag, int fmt, struct thread *td)
|
||||
apmclose(dev_t dev, int flag, int fmt, d_thread_t *td)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
|
||||
apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, d_thread_t *td)
|
||||
{
|
||||
int error = 0;
|
||||
struct acpi_softc *acpi_sc;
|
||||
@ -304,7 +304,7 @@ apmwrite(dev_t dev, struct uio *uio, int ioflag)
|
||||
}
|
||||
|
||||
static int
|
||||
apmpoll(dev_t dev, int events, struct thread *td)
|
||||
apmpoll(dev_t dev, int events, d_thread_t *td)
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user