简体   繁体   English

RTNETLINK 回答:参数列表太长

[英]RTNETLINK answers: Argument list too long

I backported mcp251xfd CAN driver for v4.9 I can see now can0 in ifconfig but when I do:我为 v4.9 反向移植了 mcp251xfd CAN 驱动程序我现在可以在ifconfig中看到can0但是当我这样做时:

$ sudo ip link set can0 type can bitrate 125000
$ sudo ip link set up can0

I get the following: RTNETLINK answers: Argument list too long我得到以下信息: RTNETLINK answers: Argument list too long

It comes from the second command.它来自第二个命令。

I needed to comment out the check here: https://elixir.bootlin.com/linux/v4.9.170/source/drivers/base/regmap/regmap.c#L1730我需要在这里注释掉检查: https://elixir.bootlin.com/linux/v4.9.170/source/drivers/base/regmap/regmap.c#L1730

These lines:这些行:

if (map->max_raw_write && map->max_raw_write < val_len)
        return -E2BIG;

I saw that there no such check in newer kernel versions.我看到在较新的 kernel 版本中没有这样的检查。

Thanks James Risner谢谢詹姆斯·里斯纳

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM