Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.16-rc7 23 lines 456 B view raw
1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/pci.h> 4 5void rust_helper_pci_set_drvdata(struct pci_dev *pdev, void *data) 6{ 7 pci_set_drvdata(pdev, data); 8} 9 10void *rust_helper_pci_get_drvdata(struct pci_dev *pdev) 11{ 12 return pci_get_drvdata(pdev); 13} 14 15resource_size_t rust_helper_pci_resource_len(struct pci_dev *pdev, int bar) 16{ 17 return pci_resource_len(pdev, bar); 18} 19 20bool rust_helper_dev_is_pci(const struct device *dev) 21{ 22 return dev_is_pci(dev); 23}