* shmem_file_setup not exported
@ 2004-11-06 19:31 Måns Rullgård
2004-11-06 19:42 ` Hugh Dickins
0 siblings, 1 reply; 3+ messages in thread
From: Måns Rullgård @ 2004-11-06 19:31 UTC (permalink / raw)
To: linux-kernel
I noticed this change in mm/shmem.c:
-EXPORT_SYMBOL(shmem_file_setup);
Is there a reason for this, other than nobody using it?
I used that function in a module I wrote, mostly as a proof of
concept, for someone who was looking for a way to unmap memory pages
while retaining their contents, and being able to map them later.
--
Måns Rullgård
mru@inprovide.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: shmem_file_setup not exported
2004-11-06 19:31 shmem_file_setup not exported Måns Rullgård
@ 2004-11-06 19:42 ` Hugh Dickins
2004-11-06 19:56 ` Måns Rullgård
0 siblings, 1 reply; 3+ messages in thread
From: Hugh Dickins @ 2004-11-06 19:42 UTC (permalink / raw)
To: Måns Rullgård; +Cc: linux-kernel
On Sat, 6 Nov 2004, Måns Rullgård wrote:
> I noticed this change in mm/shmem.c:
>
> -EXPORT_SYMBOL(shmem_file_setup);
>
> Is there a reason for this, other than nobody using it?
That's the reason hch rightly removed the export, yes.
ipc/shm.c does use it, but it's never a module, so doesn't need export.
No other reason, beyond that it's appropriate to minimize exports.
If you want to use it from your module, just patch the export back.
Hugh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: shmem_file_setup not exported
2004-11-06 19:42 ` Hugh Dickins
@ 2004-11-06 19:56 ` Måns Rullgård
0 siblings, 0 replies; 3+ messages in thread
From: Måns Rullgård @ 2004-11-06 19:56 UTC (permalink / raw)
To: Hugh Dickins; +Cc: linux-kernel
Hugh Dickins <hugh@veritas.com> writes:
> On Sat, 6 Nov 2004, Måns Rullgård wrote:
>> I noticed this change in mm/shmem.c:
>>
>> -EXPORT_SYMBOL(shmem_file_setup);
>>
>> Is there a reason for this, other than nobody using it?
>
> That's the reason hch rightly removed the export, yes.
> ipc/shm.c does use it, but it's never a module, so doesn't need export.
> No other reason, beyond that it's appropriate to minimize exports.
> If you want to use it from your module, just patch the export back.
That makes using the module more complicated. I don't really care
much, I'm not actively using the module. I was just wondering whether
using it was incredibly silly for some reason.
--
Måns Rullgård
mru@inprovide.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-06 19:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 19:31 shmem_file_setup not exported Måns Rullgård
2004-11-06 19:42 ` Hugh Dickins
2004-11-06 19:56 ` Måns Rullgård
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®