/** * clocksource_mmio_init - Initialize a simple mmio based clocksource * @base: Virtual address of the clock readout register * @name: Name of the clocksource * @hz: Frequency of the clocksource in Hz * @rating: Rating of the clocksource * @bits: Number of valid bits * @read: One of clocksource_mmio_read*() above
*/ int __init clocksource_mmio_init(void __iomem *base, constchar *name, unsignedlong hz, int rating, unsigned bits,
u64 (*read)(struct clocksource *))
{ struct clocksource_mmio *cs;
if (bits > 64 || bits < 16) return -EINVAL;
cs = kzalloc(sizeof(struct clocksource_mmio), GFP_KERNEL); if (!cs) return -ENOMEM;
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.