mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Remove kernelside support for devfs rules filtering on major numbers.
This commit is contained in:
parent
a4e714295a
commit
f5af7353c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143303
@ -78,11 +78,9 @@ struct devfs_rule {
|
||||
int dr_icond;
|
||||
#define DRC_DSWFLAGS 0x001
|
||||
#define DRC_PATHPTRN 0x002
|
||||
#define DRC_MAJOR 0x004
|
||||
int dr_dswflags; /* cdevsw flags to match. */
|
||||
#define DEVFS_MAXPTRNLEN 200
|
||||
char dr_pathptrn[DEVFS_MAXPTRNLEN]; /* Pattern to match path. */
|
||||
int dr_major; /* Device major number. */
|
||||
|
||||
/*
|
||||
* Things to change. dr_iacts determines which of the other
|
||||
|
@ -614,9 +614,6 @@ devfs_rule_match(struct devfs_krule *dk, struct devfs_dirent *de)
|
||||
if (dr->dr_icond & DRC_PATHPTRN)
|
||||
if (!devfs_rule_matchpath(dk, de))
|
||||
goto nomatch;
|
||||
if (dr->dr_icond & DRC_MAJOR)
|
||||
if (dev == NULL || major(dev) != dr->dr_major)
|
||||
goto nomatch;
|
||||
|
||||
return (1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user