1*ee65728eSMike Rapoport.. SPDX-License-Identifier: GPL-2.0 2*ee65728eSMike Rapoport 3*ee65728eSMike Rapoport:Original: Documentation/mm/damon/api.rst 4*ee65728eSMike Rapoport 5*ee65728eSMike Rapoport:翻译: 6*ee65728eSMike Rapoport 7*ee65728eSMike Rapoport 司延腾 Yanteng Si <siyanteng@loongson.cn> 8*ee65728eSMike Rapoport 9*ee65728eSMike Rapoport:校译: 10*ee65728eSMike Rapoport 11*ee65728eSMike Rapoport 12*ee65728eSMike Rapoport======= 13*ee65728eSMike RapoportAPI参考 14*ee65728eSMike Rapoport======= 15*ee65728eSMike Rapoport 16*ee65728eSMike Rapoport内核空间的程序可以使用下面的API来使用DAMON的每个功能。你所需要做的就是引用 ``damon.h`` , 17*ee65728eSMike Rapoport它位于源代码树的include/linux/。 18*ee65728eSMike Rapoport 19*ee65728eSMike Rapoport结构体 20*ee65728eSMike Rapoport====== 21*ee65728eSMike Rapoport 22*ee65728eSMike Rapoport该API在以下内核代码中: 23*ee65728eSMike Rapoport 24*ee65728eSMike Rapoportinclude/linux/damon.h 25*ee65728eSMike Rapoport 26*ee65728eSMike Rapoport 27*ee65728eSMike Rapoport函数 28*ee65728eSMike Rapoport==== 29*ee65728eSMike Rapoport 30*ee65728eSMike Rapoport该API在以下内核代码中: 31*ee65728eSMike Rapoport 32*ee65728eSMike Rapoportmm/damon/core.c 33