The meaning of 'others' is non zero.
This function has three return positions. In addition to successfully return 0, the first failed position will return - E2BIG, and the second position will return Non zero value for setup_cpu_cache function failure.
发件人: Bagas Sanjaya 已发送: 2023 年 4 月 10 日 星期一 22:05 收件人: zhaoxinchao 抄送: cl@xxxxxxxxx; penberg@xxxxxxxxxx; rientjes@xxxxxxxxxx; iamjoonsoo.kim@xxxxxxx; akpm@xxxxxxxxxxxxxxxxxxxx; vbabka@xxxxxxx; linux-mm@xxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx 主题: Re: [PATCH] mm: Fixed incorrect comment for _kmem_cache_create function On Mon, Apr 10, 2023 at 05:01:42PM +0800, zhaoxinchao wrote:
> - * Returns a ptr to the cache on success, NULL on failure. > + * Returns zero on success, others on failure. Can you explain what these other return values are? I have skimmed on __kmem_cache_create() kerneldoc and the function returns error in that case. -- An old man doll... just what I always wanted! - Clara |