[lkml]   [2003]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: seq_file and exporting dynamically allocated data
    On Sat, Nov 15, 2003 at 10:38:33AM +0100, Harald Welte wrote:
    > that doesn't help. As I am aware, the seq_file structure is only
    > allocated in the seq_open() call. How does seq_open() know which
    > private data (i.e. hash table) to associate with struct file?

    Why should seq_open() know that? Its caller does and it can set the damn
    thing to whatever it wants.

    > The only moment I know which htable corresponds to a proc entry is at
    > the time where I call proc_net_create() [or a similar function]. So the
    > information would need to be associated with the dentry or whatever...
    > seq_file() is allocated way too late.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:58    [W:0.026 / U:89.796 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site