add_to_swap(...) send page to swap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I need to be able to send a page to swap without having to duplicate
code, if possible.

mm/swap_state.c:int add_to_swap(struct page * page) seems to be a good
candidate but it is not exported for general or module use. I could
export the symbol manually on my local source base, but it's not a
solution should the source module be distributed.

Is there a reason for not exporting add_to_swap? Is there an
alternative function call?

thanks,

sd

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux