[Intel-gfx] [PATCH] Convert proc files to seq_file
eric at anholt.net
Tue Feb 3 14:35:21 PST 2009
On Tue, 2009-02-03 at 17:06 -0500, Ben Gamari wrote:
> The old mechanism to formatting proc files is extremely ugly. The
> seq_file API was designed specifically for cases like this and greatly
> simplifies the process.
> + * Simply calls _vm_info() while holding the drm_device::struct_mutex lock.
> + */
> +int drm_vm_info(struct seq_file *m, void *data)
> + struct drm_info_node *node = (struct drm_info_node *) m->private;
> + struct drm_device *dev = node->minor->dev;
> + mutex_lock(&dev->struct_mutex);
> + drm__vm_info(m, data);
> + mutex_unlock(&dev->struct_mutex);
> + return 0;
I forgot, we can fold the core of the functions into these wrappers now
that we're not using goofy macros that return on you, right?
eric at anholt.net eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/intel-gfx/attachments/20090203/dd99329c/attachment.pgp
More information about the Intel-gfx