public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Writing data > PAGESIZE into kernel with proc fs
@ 2005-03-08 19:05 Weber Matthias
  2005-03-08 21:18 ` Jan Hudec
  0 siblings, 1 reply; 4+ messages in thread
From: Weber Matthias @ 2005-03-08 19:05 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel

Hi,

is there any chance to signal an EOF when writing data to kernel via proc fs? Actually if the length of data is N*PAGE_SIZE it seems not to be detectable. I followed up the "struct file" but haven't found anything that helped...

Any help would be appreciated!

Bye
Matthias


^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: Writing data > PAGESIZE into kernel with proc fs
@ 2005-03-09 10:26 Weber Matthias
  2005-03-09 15:36 ` Jan Hudec
  0 siblings, 1 reply; 4+ messages in thread
From: Weber Matthias @ 2005-03-09 10:26 UTC (permalink / raw)
  To: Jan Hudec; +Cc: kernelnewbies, linux-kernel

On Tue, Mar 08, 2005 at 20:05:42 +0100, Weber Matthias wrote:
>> is there any chance to signal an EOF when writing data to kernel via proc fs? >> Actually if the length of data is N*PAGE_SIZE it seems not to be detectable. 
>> I followed up the "struct file" but haven't found anything that helped...

> End-of-file is signified by closing the file. As usual.

Having only this struct describing an proc entry, i have no idea on how to detect when the file is closed. For this i expect to register a callback function but where and how?

struct proc_dir_entry {
	unsigned int low_ino;
	unsigned short namelen;
	const char *name;
	mode_t mode;
	nlink_t nlink;
	uid_t uid;
	gid_t gid;
	unsigned long size;
	struct inode_operations * proc_iops;
	struct file_operations * proc_fops;
	get_info_t *get_info;
	struct module *owner;
	struct proc_dir_entry *next, *parent, *subdir;
	void *data;
	read_proc_t *read_proc;
	write_proc_t *write_proc;
	atomic_t count;		/* use count */
	int deleted;		/* delete flag */
};

Thanks,
Matthias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-09 15:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 19:05 Writing data > PAGESIZE into kernel with proc fs Weber Matthias
2005-03-08 21:18 ` Jan Hudec
  -- strict thread matches above, loose matches on Subject: below --
2005-03-09 10:26 Weber Matthias
2005-03-09 15:36 ` Jan Hudec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox