<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019 at 3:02 PM www <<a href="mailto:ouyangxuan10@163.com">ouyangxuan10@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div>Dear all,</div><div><br></div><div>I add a new driver to kernel, and it probe success. When enter into systemd, the udevadm generate a kernel panic.</div><div>I want to ask how to debug it and find out where the error occurred? When did udevadm load? What commands are used by udevadm, and what are the specific operations?</div></div></blockquote><div><br></div><div>There aren't many udevadm calls in systemd... The main one is systemd-udev-trigger.service, which calls `udevadm trigger --type=subsystems --action=add`, then repeats the same for type=devices. It tries to generate coldplug uevents by writing 'add' to each found device's /sys/.../uevent file.</div><div><br></div><div>(The second is systemd-udev-settle.service, but it is disabled by default on most systems and just waits for udev's job queue to empty.)<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>