params.c (ee6d3dd4ed48ab24b74bab3c3977b8218518247d) | params.c (cf6299b6101903c31bddb0065804b2121ed510c7) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* Helpers for initial module or kernel cmdline parsing 3 Copyright (C) 2001 Rusty Russell. 4 5*/ 6#include <linux/kernel.h> 7#include <linux/string.h> 8#include <linux/errno.h> --- 912 unchanged lines hidden (view full) --- 921 return ret; 922} 923 924static const struct sysfs_ops module_sysfs_ops = { 925 .show = module_attr_show, 926 .store = module_attr_store, 927}; 928 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* Helpers for initial module or kernel cmdline parsing 3 Copyright (C) 2001 Rusty Russell. 4 5*/ 6#include <linux/kernel.h> 7#include <linux/string.h> 8#include <linux/errno.h> --- 912 unchanged lines hidden (view full) --- 921 return ret; 922} 923 924static const struct sysfs_ops module_sysfs_ops = { 925 .show = module_attr_show, 926 .store = module_attr_store, 927}; 928 |
929static int uevent_filter(struct kset *kset, struct kobject *kobj) | 929static int uevent_filter(struct kobject *kobj) |
930{ 931 const struct kobj_type *ktype = get_ktype(kobj); 932 933 if (ktype == &module_ktype) 934 return 1; 935 return 0; 936} 937 --- 39 unchanged lines hidden --- | 930{ 931 const struct kobj_type *ktype = get_ktype(kobj); 932 933 if (ktype == &module_ktype) 934 return 1; 935 return 0; 936} 937 --- 39 unchanged lines hidden --- |