<div dir="ltr"><div><div><div><div><div>In kernel source, `IS_ERR_VALUE` is defined:<br><br>#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)<br><br></div>It's usage can be realized literally, but definition is not.<br>
</div>Can I use this macro to determines the kernel API's result is valid?<br></div><br>Example:<br></div>if (IS_ERR_VALUE(filp_open(device)))<br>{<br></div> filp_close(device);<br><div>}<br></div></div>