[PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper

Sagi Grimberg sagi at grimberg.me
Tue Jun 6 11:26:09 PDT 2017


> +	while ((offset < buflen) && sg_miter_next(&miter)) {
> +		unsigned int len;
> +
> +		len = min(miter.length, buflen - offset);
> +		memset(miter.addr, '\0', len);

Why '\0' and not 0?



More information about the Linux-nvme mailing list