Thread (17 messages) 17 messages, 6 authors, 2021-03-12

Re: [PATCH 02/10] vfio: Split creation of a vfio_device into init and register ops

From: Christoph Hellwig <hch@lst.de>
Date: 2021-03-12 16:32:29
Also in: kvm

On Fri, Mar 12, 2021 at 10:23:26AM -0400, Jason Gunthorpe wrote:
This is rarely done, there should be a good reason to do it, as making
a private structure in a container_of system requires another memory
allocation.

'struct device' has this for instance, look at the 'p' member.

In this case I can't see much value
Agreed.  Moving this code to the normal kernel pattern really not just
helps to find bugs and reduce complexity, but also makes it much easier
for random kernel developers to actually be able to understand the code.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help