working of migrate_page (exported) function in mm/migrate.c linux Kernel

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Sun Sep 22 21:53:13 EDT 2013


On Mon, 23 Sep 2013 09:00:21 +0800, ajay saini said:
> Is it used somewhere ?

[~] cd /usr/src/linux-next/
[/usr/src/linux-next] find [a-z]* -name '*.[ch]' | xargs grep migrate_page | grep -v migrate_pages

And start searching from there.  You'll probably have to iterate several
times, because there's at least onea few lines of the form:

mm/swap_state.c:        .migratepage    = migrate_page,
mm/shmem.c:     .migratepage    = migrate_page,

which means you need to figure out who calls that function pointer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130922/97d0c04e/attachment.bin 


More information about the Kernelnewbies mailing list