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 227c3d546e963874198aafc0cae8c3e8c24ae4ee 32 lines 754 B view raw
1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/device.h> 4 5__rust_helper int rust_helper_devm_add_action(struct device *dev, 6 void (*action)(void *), 7 void *data) 8{ 9 return devm_add_action(dev, action, data); 10} 11 12__rust_helper int rust_helper_devm_add_action_or_reset(struct device *dev, 13 void (*action)(void *), 14 void *data) 15{ 16 return devm_add_action_or_reset(dev, action, data); 17} 18 19__rust_helper void *rust_helper_dev_get_drvdata(const struct device *dev) 20{ 21 return dev_get_drvdata(dev); 22} 23 24__rust_helper void rust_helper_dev_set_drvdata(struct device *dev, void *data) 25{ 26 dev_set_drvdata(dev, data); 27} 28 29__rust_helper const char *rust_helper_dev_name(const struct device *dev) 30{ 31 return dev_name(dev); 32}