Re: [PATCH 1/2] interconnect: Add character pointer initialization

From: Greg KH
Date: Tue Sep 03 2024 - 04:00:43 EST


Again, please do not top-post, please fix your email client.

On Tue, Sep 03, 2024 at 03:23:13PM +0800, yi'bin ding wrote:
> Thanks in advance,
>
> That happens if you write to the file, but what happens if you never write
> to the file? What happens when you remove the driver/module,shouldn't you
> free the memory then as well?
>
> answer:If no write operation is performed on the node, this part of the
> memory will not be released before shutdown. The initialization operation
> of this module is performed by the swapper process, so this part of the
> memory will be released when the swapper process is terminated during
> shutdown.

What "swapper process" are you talking about here? Specifics please.

confused,

greg k-h