Date:2011-01-03 22:53:56 (13 years 2 months ago)
Author:Werner Almesberger
Commit:f26d735dac26f8de330cc40f10e8a50272b07489
Message:tools/lib/atusd.c (atusd_open): open /dev/mem with O_SYNC to disable caching

Files: tools/lib/atusd.c (2 diffs)

Change Details

tools/lib/atusd.c
11/*
22 * lib/atusd.c - ATRF access functions library (uSD version)
33 *
4 * Written 2010 by Werner Almesberger
5 * Copyright 2010 Werner Almesberger
4 * Written 2010-2011 by Werner Almesberger
5 * Copyright 2010-2011 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
181181        exit(1);
182182    }
183183
184    dsc->fd = open("/dev/mem", O_RDWR);
184    dsc->fd = open("/dev/mem", O_RDWR | O_SYNC);
185185    if (dsc->fd < 0) {
186186        perror("/dev/mem");
187187        exit(1);

Archive Download the corresponding diff file



interactive