err = pci_write_config_dword(dev, off, dword);
err = pci_user_write_config_dword(dev, off, dword);
sys_pciconfig_write(unsigned long bus, unsigned long dfn,		    unsigned long off, unsigned long len,		    void __user *buf){	struct pci_dev *dev;	u8 byte;	u16 word;	u32 dword;	int err = 0;	if (!capable(CAP_SYS_ADMIN))		return -EPERM;	dev = pci_find_slot(bus, dfn);	if (!dev)		return -ENODEV;	lock_kernel();	switch(len) {	case 1:		err = get_user(byte, (u8 __user *)buf);		if (err)			break;		err = pci_write_config_byte(dev, off, byte);		if (err != PCIBIOS_SUCCESSFUL)			err = -EIO;		break;	case 2:		err = get_user(word, (u16 __user *)buf);		if (err)			break;		err = pci_write_config_word(dev, off, word);		if (err != PCIBIOS_SUCCESSFUL)			err = -EIO;		break;	case 4:		err = get_user(dword, (u32 __user *)buf);		if (err)			break;		err = pci_write_config_dword(dev, off, dword);		if (err != PCIBIOS_SUCCESSFUL)			err = -EIO;		break;	default:		err = -EINVAL;		break;	};	unlock_kernel();	return err;}