Use 'struct thread' instead of 'd_thread_t' in example PCI driver.

This commit is contained in:
John Baldwin 2015-01-13 19:23:17 +00:00
parent a753b6609c
commit e292bc8947
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=46198
2 changed files with 4 additions and 4 deletions
en_US.ISO8859-1/books/arch-handbook/pci
zh_CN.UTF-8/books/arch-handbook/pci

View file

@ -75,7 +75,7 @@ static struct cdevsw mypci_cdevsw = {
*/
int
mypci_open(struct cdev *dev, int oflags, int devtype, d_thread_t *td)
mypci_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
struct mypci_softc *sc;
@ -86,7 +86,7 @@ mypci_open(struct cdev *dev, int oflags, int devtype, d_thread_t *td)
}
int
mypci_close(struct cdev *dev, int fflag, int devtype, d_thread_t *td)
mypci_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
{
struct mypci_softc *sc;

View file

@ -80,7 +80,7 @@ static struct cdevsw mypci_cdevsw = {
*/
int
mypci_open(struct cdev *dev, int oflags, int devtype, d_thread_t *td)
mypci_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
struct mypci_softc *sc;
@ -91,7 +91,7 @@ mypci_open(struct cdev *dev, int oflags, int devtype, d_thread_t *td)
}
int
mypci_close(struct cdev *dev, int fflag, int devtype, d_thread_t *td)
mypci_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
{
struct mypci_softc *sc;