<div dir="ltr"><div>Hi, felix</div><div><br></div><div>I'm reading lspci code, and I have a question about below code.</div><div><br></div><div> 25 struct {</div><div> 26 char class[16], vendor[16], device[16], module[256];</div>
<div> 27 } *bufs = (void*)(toybuf + 2);</div><div><br></div><div>Could I know why you use '*bufs = (void*)(toybuf + 2);' instead of '*bufs = (void*)(toybuf);' ?</div><div><br></div><div>What does it mean '+2'?</div>
<div><br></div><div><br></div><div>Thanks.</div><div>Kyungwan Han.</div><div><br></div></div>