All of lore.kernel.org
 help / color / mirror / Atom feed
* bdevname(), cdevname(), kdevname() - static buffers
@ 2001-11-02 18:42 Russ Weight
  2001-11-02 18:59 ` Alan Cox
  2001-11-02 19:03 ` Andreas Dilger
  0 siblings, 2 replies; 3+ messages in thread
From: Russ Weight @ 2001-11-02 18:42 UTC (permalink / raw)
  To: linux-kernel

Hi,

I was looking at the usage of bdevname(), cdevname(), and kdevname(),
and noticed that they each return a pointer to a static buffer.
This buffer contains a formatted device name, which is typically
printed immediately following the call. However, I don't see any
explicit lock protection for these buffers.

For SMP systems, is there something implicit in their use that
prevents a race on these buffers? Has anyone seen garbled device
names being printed (which might be attributed to a race)?

- Russ

     ----------------------------------------------------------------------

Russ Weight  (rweight@us.ibm.com)
IBM Technology Center

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

end of thread, other threads:[~2001-11-02 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-02 18:42 bdevname(), cdevname(), kdevname() - static buffers Russ Weight
2001-11-02 18:59 ` Alan Cox
2001-11-02 19:03 ` Andreas Dilger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.