From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752567Ab0AROCA (ORCPT ); Mon, 18 Jan 2010 09:02:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752016Ab0AROB7 (ORCPT ); Mon, 18 Jan 2010 09:01:59 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:39483 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450Ab0AROB6 (ORCPT ); Mon, 18 Jan 2010 09:01:58 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OXAmu5UmSnd4FbGzpSTtqE5V/Ks+WUtYnTFe0pYrc1YP+ZXzrRYAPF/T2rniVuKegV cyAPwzdd/fh1QOKg9IUp6HgJnbjmdY8PiViNFMoQman+fORldEZ9PntonMB3lPrHuA+F lSQPtlGNtx7Jclg17FcYoFK7HtQyU6zlLoHwo= MIME-Version: 1.0 Date: Mon, 18 Jan 2010 15:01:56 +0100 Message-ID: <1dec3f771001180601jd511ab0g51aaaf8ed2195e9d@mail.gmail.com> Subject: module init data From: mojtaba To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi there, I have a kernel modules which needs to maintain a table of some information. the data in the table can be changed during the system run and some new raws might be added to the table. The table also must be initialized at the system startup with the values from the previous run. As using files is not good in kernel mode, how can I load the data at the startup and store them as they changed? These information are device related. Can I use sysfs for this issue? Is there any tutorial on how to do that? Regards, moji