[pso] [Tema3] tot __bread()
Victor Jach
victor_jach at yahoo.com
Mon Apr 23 22:05:29 EEST 2007
Insist cu intrebarea anterioara vis-a-vis de problema cu bread().
Iata si codul:
int pitix_fill_super(struct super_block *s, void *data, int silent)
{
struct buffer_head *bh;
/* nu se blocheaza */
bh =__bread(s->s_bdev, 0, 512);
/* se blocheaza */
bh =__bread(s->s_bdev, 9, 512);
...
int pitix_get_sb(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
{
return get_sb_bdev(fs_type, flags, dev_name, data, pitix_fill_super,
mnt);
}
In documentatia de Kernel scrie ca __bread nu se poate bloca. Gresesc eu cu ceva ?!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070423/dda5bed6/attachment.htm
More information about the pso
mailing list