// SPDX-License-Identifier: GPL-2.0-or-later /* nommu.c: mmu-less memory info files * * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com)
*/
/* * display a single region to a sequenced file
*/ staticint nommu_region_show(struct seq_file *m, struct vm_region *region)
{ unsignedlong ino = 0; struct file *file;
dev_t dev = 0; int flags;
flags = region->vm_flags;
file = region->vm_file;
if (file) { struct inode *inode = file_inode(region->vm_file);
dev = inode->i_sb->s_dev;
ino = inode->i_ino;
}
if (file) {
seq_pad(m, ' ');
seq_path(m, file_user_path(file), "");
}
seq_putc(m, '\n'); return 0;
}
/* * display a list of all the REGIONs the kernel knows about * - nommu kernels have a single flat list
*/ staticint nommu_region_list_show(struct seq_file *m, void *_p)
{ struct rb_node *p = _p;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.